WP_Upgrader::release_lock( string $lock_name ): bool

Releases an upgrader lock.


Description

Top ↑

See also


Top ↑

Parameters

$lock_name string Required
The name of this unique lock.

Top ↑

Return

bool True if the lock was successfully released. False on failure.


Top ↑

Source

File: wp-admin/includes/class-wp-upgrader.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.