ActionScheduler_Lock::get_duration()
Get the amount of time to set for a given lock. 60 seconds by default.
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.
ActionScheduler_Lock::get_duration() ActionScheduler Lock::get duration code WC 9.2.3
protected function get_duration( $lock_type ) { return apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type ); }