action_scheduler_lock_duration хук-фильтрWC 1.0

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

Использование

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
-

Где вызывается хук

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 );

Где используется хук в WooCommerce

Использование не найдено.