wp site option <command>

Adds, updates, deletes, and lists site options in a multisite installation.

EXAMPLES EXAMPLES

# Get site registration
$ wp site option get registration
none

# Add site option
$ wp site option add my_option foobar
Success: Added 'my_option' site option.

# Update site option
$ wp site option update my_option '{"foo": "bar"}' --format=json
Success: Updated 'my_option' site option.

# Delete site option
$ wp site option delete my_option
Success: Deleted 'my_option' site option.

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp site option add

Adds a site option.

wp site option delete

Deletes a site option.

wp site option get

Gets a site option.

wp site option list

Lists site options.

wp site option patch

Updates a nested value in an option.

wp site option pluck

Gets a nested value from an option.

wp site option update

Updates a site option.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.