WC_Install::release_lock
Releases the installation lock.
Method of the class: WC_Install{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Install::release_lock(): void;
WC_Install::release_lock() WC Install::release lock code WC 10.6.2
private static function release_lock(): void {
// Delete the transient BEFORE the option to avoid races that might result in an active lock with an empty transient.
delete_transient( 'wc_installing' );
global $wpdb;
$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name = 'wc_installing'" );
}