WP_CLI\Utils

load_command()WP-CLI 1.0

No Hooks.

Return

null. Nothing.

Usage

load_command( $name );
$name (required)
-

Code of load_command() WP-CLI 2.7.0-alpha

function load_command( $name ) {
	$path = WP_CLI_ROOT . "/php/commands/$name.php";

	if ( is_readable( $path ) ) {
		include_once $path;
	}
}