Skip to content

Patch widget options #16

Open
Open
@johnbillion

Description

@johnbillion

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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions