WP_CLI::has_config
Confirm that a global configuration parameter does exist.
Method of the class: WP_CLI{}
No Hooks.
Returns
true|false.
Usage
$result = WP_CLI::has_config( $key );
- $key(string) (required)
- Config parameter key to check.
WP_CLI::has_config() WP CLI::has config code WP-CLI 2.13.0-alpha
public static function has_config( $key ) {
return array_key_exists( $key, self::get_runner()->config );
}