WP_Upgrader::release_lock
Releases an upgrader lock.
Method of the class: WP_Upgrader{}
No Hooks.
Returns
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() WP Upgrader::release lock code WP 7.0
public static function release_lock( $lock_name ) {
return delete_option( $lock_name . '.lock' );
}