WP_CLI::get_root_command
Метод класса: WP_CLI{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WP_CLI::get_root_command();
Код WP_CLI::get_root_command() WP CLI::get root command WP-CLI 2.13.0-alpha
public static function get_root_command() {
static $root;
if ( ! $root ) {
$root = new RootCommand();
}
return $root;
}