WP_CLI\Utils
load_command()
Load a command.
No Hooks.
Returns
null. Nothing (null).
Usage
load_command( $name );
- $name(string) (required)
- .
load_command() load command code WP-CLI 2.13.0-alpha
function load_command( $name ) {
$path = WP_CLI_ROOT . "/php/commands/$name.php";
if ( is_readable( $path ) ) {
include_once $path;
}
}