WP_CLI::get_root_command()public staticWP-CLI 1.0

Method of the class: WP_CLI{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WP_CLI::get_root_command();

WP_CLI::get_root_command() code WP-CLI 2.8.0-alpha

public static function get_root_command() {
	static $root;

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

	return $root;
}