WordPress at Your Fingertips
function is not described

ActionScheduler_Lock::is_locked() public WC 1.0

Check if a lock is set for a given lock type.

{} It's a method of the class: ActionScheduler_Lock{}

No Hooks.

Return

true|false.

Usage

$ActionScheduler_Lock = new ActionScheduler_Lock();
$ActionScheduler_Lock->is_locked( $lock_type );
$lock_type(string) (required)
A string to identify different lock types.

Code of ActionScheduler_Lock::is_locked() WC 6.1.0

public function is_locked( $lock_type ) {
	return ( $this->get_expiration( $lock_type ) >= time() );
}