We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The options for a widget are stored as a serialised array. There's no way of patching a field in a widget's options using wp widget update.
wp widget update
Possible syntax:
wp widget patch <widget-id> <field> <key-path>... [<value>]
Example usage:
wp widget patch archives-3 options title "My Site Archives"
The text was updated successfully, but these errors were encountered:
For consistency, we should use the same syntax as we do with the other patch commands:
wp widget patch <action> <widget-id> <field> <key-path>... [<value>]
where <action> is one of insert, update, delete.
<action>
insert
update
delete
Sorry, something went wrong.
No branches or pull requests
The options for a widget are stored as a serialised array. There's no way of patching a field in a widget's options using
wp widget update
.Possible syntax:
wp widget patch <widget-id> <field> <key-path>... [<value>]
Example usage:
wp widget patch archives-3 options title "My Site Archives"
The text was updated successfully, but these errors were encountered: