WP_CLI::get_root_command()public staticWP-CLI 1.0

{} It's a method of the class: WP_CLI{}

No Hooks.

Return

null. Nothing.

Usage

$result = WP_CLI::get_root_command();

Code of WP_CLI::get_root_command() WP-CLI 2.7.0-alpha

public static function get_root_command() {
	static $root;

	if ( ! $root ) {
		$root = new RootCommand();
	}

	return $root;
}