ActionScheduler_OptionLock::get_expiration()publicWC 1.0

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

Method of the class: ActionScheduler_OptionLock{}

No Hooks.

Return

true|false|Int. False if no lock is set, otherwise the timestamp for when the lock is set to expire.

Usage

$ActionScheduler_OptionLock = new ActionScheduler_OptionLock();
$ActionScheduler_OptionLock->get_expiration( $lock_type );
$lock_type(string) (required)
A string to identify different lock types.

ActionScheduler_OptionLock::get_expiration() code WC 8.6.1

public function get_expiration( $lock_type ) {
	return $this->get_expiration_from( $this->get_existing_lock( $lock_type ) );
}