Welcome to WP-CLIWP-CLIWP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/https://make.wordpress.org/cli/!
WP-CLI is the official command line tool for interacting with and managing your WordPress sites.
Write a check for asserting the value of a given option Edit
One of the check types included in wp doctor is Option_Value, or the ability to assert that a given option is a specific value. The check type is in use by a couple of the default diagnostic checks, and you can use the Option_Value check type in your custom doctor.yml configuration file.
As an example, here are two checks using Option_Value, one which ensures the blog is public and the other which ensures users can’t register:
$ wp doctor check --config=option-value.yml --all
+---------------------------+---------+-------------------------------------------------+
| name | status | message |
+---------------------------+---------+-------------------------------------------------+
| option-blog-public | error | Site is private but expected to be public. |
| option-users-can-register | success | Option 'users_can_register' is '0' as expected. |
+---------------------------+---------+-------------------------------------------------+
The Option_Value check type accepts the following options:
‘option’: Name of the option.
‘value’: Option is expected to be a specific value.