ActionScheduler_OptionLock::get_expiration()publicWC 1.0

If a lock is set, return the timestamp it was set to expiry.

{} Это метод класса: ActionScheduler_OptionLock{}

Хуков нет.


true|false|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() WC 6.9.4

public function get_expiration( $lock_type ) {
	return get_option( $this->get_key( $lock_type ) );