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.
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. |