WP_Upgrader::release_lock()public staticWP 4.5.0

Releases an upgrader lock.

{} Это метод класса: WP_Upgrader{}

Хуков нет.

Возвращает

true|false. True if the lock was successfully released. False on failure.

Использование

$result = WP_Upgrader::release_lock( $lock_name );
$lock_name(строка) (обязательный)
The name of this unique lock.

Заметки

Список изменений

С версии 4.5.0 Введена.

Код WP_Upgrader::release_lock() WP 6.0.2

public static function release_lock( $lock_name ) {
	return delete_option( $lock_name . '.lock' );
}