ActionScheduler_OptionLock::get_expiration
If a lock is set, return the timestamp it was set to expiry.
Метод класса: ActionScheduler_OptionLock{}
Хуков нет.
Возвращает
bool|int. False if no lock is set, otherwise the timestamp for when the lock is set to expire.
Использование
$ActionScheduler_OptionLock = new ActionScheduler_OptionLock(); $ActionScheduler_OptionLock->get_expiration( $lock_type );
- $lock_type(строка) (обязательный)
- A string to identify different lock types.
Код ActionScheduler_OptionLock::get_expiration() ActionScheduler OptionLock::get expiration WC 11.2.2
public function get_expiration( $lock_type ) {
return $this->get_expiration_from( (string) $this->get_existing_lock( $lock_type, time() ) );
}