WP_CLI::get_runner()public staticWP-CLI 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$result = WP_CLI::get_runner();

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

public static function get_runner() {
	static $runner;

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

	return $runner;
}