WordPress at Your Fingertips
function is not described

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



// 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() WC 5.5.2

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