ActionScheduler_Lock::set()publicWC 1.0

Set a lock.

To prevent race conditions, implementations should avoid setting the lock if the lock is already held.

Метод класса: ActionScheduler_Lock{}

Хуков нет.

Возвращает

true|false.

Использование

$ActionScheduler_Lock = new ActionScheduler_Lock();
$ActionScheduler_Lock->set( $lock_type );
$lock_type(строка) (обязательный)
A string to identify different lock types.

Код ActionScheduler_Lock::set() WC 8.7.0

abstract public function set( $lock_type );