ActionScheduler_Lock::get_duration()protectedWC 1.0

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() code WC 8.7.0

protected function get_duration( $lock_type ) {
	return apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type );
}