Provides access to --path= , --url= , and other values of
the global configuration parameters.
WP_CLI::log( 'The --url= value is: ' . WP_CLI::get_config( 'url' ) );
public static get_config ( string $key = null ) : mixed | ||
$key | string | Get value for a specific global configuration parameter. |
Résultat | mixed |