ActionScheduler_Lock::get_expiration()
If a lock is set, return the timestamp it was set to expiry.
Method of the class: ActionScheduler_Lock{}
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_Lock = new ActionScheduler_Lock(); $ActionScheduler_Lock->get_expiration( $lock_type );
- $lock_type(string) (required)
- A string to identify different lock types.
ActionScheduler_Lock::get_expiration() ActionScheduler Lock::get expiration code WC 9.3.3
abstract public function get_expiration( $lock_type );