WordPress at a glance
function is not described

ActionScheduler_OptionLock::get_expiration() public WC 1.0

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

{} It's a method of the class: ActionScheduler_OptionLock{}

No Hooks.


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(string) (required)
A string to identify different lock types.

Code of ActionScheduler_OptionLock::get_expiration() WC 5.0.0

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