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