ActionScheduler_Lock::is_locked
Check if a lock is set for a given lock type.
Method of the class: ActionScheduler_Lock{}
No Hooks.
Returns
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.
ActionScheduler_Lock::is_locked() ActionScheduler Lock::is locked code WC 10.3.5
public function is_locked( $lock_type ) {
return ( $this->get_expiration( $lock_type ) >= time() );
}