Action_Scheduler\WP_CLI
System_Command::get_latest_version
Get latest version.
Метод класса: System_Command{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_latest_version( $instance );
- $instance(null|\ActionScheduler_Versions)
- Versions.
По умолчанию:null
Код System_Command::get_latest_version() System Command::get latest version WC 10.9.4
protected function get_latest_version( $instance = null ) {
if ( is_null( $instance ) ) {
$instance = \ActionScheduler_Versions::instance();
}
return $instance->latest_version();
}