WP_CLI::has_config()public staticWP-CLI 1.0

Confirm that a global configuration parameter does exist.

Метод класса: WP_CLI{}

No Hooks.

Return

true|false.

Usage

$result = WP_CLI::has_config( $key );
$key(string) (required)
Config parameter key to check.

Code of WP_CLI::has_config() WP-CLI 2.7.0-alpha

public static function has_config( $key ) {
	return array_key_exists( $key, self::get_runner()->config );
}