WP_Upgrader::release_lock() WordPress Method
The WP_Upgrader::release_lock() method is used to release a lock on a process that is currently running. This is useful for when a process needs to be interrupted and another process needs to take over.
WP_Upgrader::release_lock( string $lock_name ) #
Releases an upgrader lock.
Description
See also
Parameters
- $lock_name
(string)(Required)The name of this unique lock.
Return
(bool) True if the lock was successfully released. False on failure.
Source
File: wp-admin/includes/class-wp-upgrader.php
public static function release_lock( $lock_name ) { return delete_option( $lock_name . '.lock' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |