WP_CLI::get_runner()public staticWP-CLI 1.0

Method of the class: WP_CLI{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WP_CLI::get_runner();

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

public static function get_runner() {
	static $runner;

	if ( ! $runner ) {
		$runner = new Runner();
	}

	return $runner;
}