ActionScheduler_Lock::get_duration() protected WC 1.0
Get the amount of time to set for a given lock. 60 seconds by default.
{} It's a method of the class: ActionScheduler_Lock{}
Hooks from the method
Return
Int.
Usage
// protected - for code of main (parent) or child class $result = $this->get_duration( $lock_type );
- $lock_type(string) (required)
- A string to identify different lock types.
Code of ActionScheduler_Lock::get_duration() ActionScheduler Lock::get duration WC 5.0.0
protected function get_duration( $lock_type ) {
return apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type );
}