ACF
Updater::get_no_update
Checks if an update is available, but can't be updated to.
Метод класса: Updater{}
Хуков нет.
Возвращает
Массив|false.
Использование
$Updater = new Updater(); $Updater->get_no_update( $basename, $force_check );
- $basename(строка)
- The plugin basename.
По умолчанию:'' - $force_check(true|false)
- Bypasses cached result.
По умолчанию:false
Список изменений
| С версии 6.2.1 | Введена. |
Код Updater::get_no_update() Updater::get no update ACF 6.4.2
public function get_no_update( $basename = '', $force_check = false ) {
// get updates.
$updates = $this->get_plugin_updates( $force_check );
// check for and return update.
if ( is_array( $updates ) && isset( $updates['no_update'][ $basename ] ) ) {
return $updates['no_update'][ $basename ];
}
return false;
}