WP_Upgrader::release_lock()public staticWP 4.5.0

Releases an upgrader lock.

Method of the class: WP_Upgrader{}

No Hooks.

Return

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

Usage

$result = WP_Upgrader::release_lock( $lock_name );
$lock_name(string) (required)
The name of this unique lock.

Notes

Changelog

Since 4.5.0 Introduced.

WP_Upgrader::release_lock() code WP 6.4.3

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