WP_CLI::get_root_command
Method of the class: WP_CLI{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WP_CLI::get_root_command();
WP_CLI::get_root_command() WP CLI::get root command code WP-CLI 2.13.0-alpha
public static function get_root_command() {
static $root;
if ( ! $root ) {
$root = new RootCommand();
}
return $root;
}