action_scheduler_lock_duration filter-hookWC 1.0

Get the amount of time to set for a given lock. 60 seconds by default.

Usage

add_filter( 'action_scheduler_lock_duration', 'wp_kama_action_scheduler_lock_duration_filter' );

/**
 * Function for `action_scheduler_lock_duration` filter-hook.
 * 
 * @param  $lock_type 
 *
 * @return 
 */
function wp_kama_action_scheduler_lock_duration_filter( $lock_type ){

	// filter...
	return $lock_type;
}
$lock_type
-

Where the hook is called

ActionScheduler_Lock::get_duration()
action_scheduler_lock_duration
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Lock.php 51
return apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type );

Where the hook is used in WooCommerce

Usage not found.