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