Action_Scheduler\WP_CLI

System_Command::get_latest_version()protectedWC 1.0

Get latest version.

Method of the class: System_Command{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_latest_version( $instance );
$instance(null|\ActionScheduler_Versions)
Versions.
Default: null

System_Command::get_latest_version() code WC 9.8.1

protected function get_latest_version( $instance = null ) {
	if ( is_null( $instance ) ) {
		$instance = \ActionScheduler_Versions::instance();
	}

	return $instance->latest_version();
}