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

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

add_filter( 'action_scheduler_pastdue_actions_check_interval', 'wp_kama_action_scheduler_pastdue_actions_check_interval_filter', 10, 2 );

/**
 * Function for `action_scheduler_pastdue_actions_check_interval` filter-hook.
 * 
 * @param  $round             
 * @param  $threshold_seconds 
 *
 * @return 
 */
function wp_kama_action_scheduler_pastdue_actions_check_interval_filter( $round, $threshold_seconds ){

	// filter...
	return $round;
}
$round
-
$threshold_seconds
-

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

ActionScheduler_AdminView::check_pastdue_actions()
action_scheduler_pastdue_actions_check_interval
woocommerce/packages/action-scheduler/classes/ActionScheduler_AdminView.php 180
$interval = apply_filters( 'action_scheduler_pastdue_actions_check_interval', round( $threshold_seconds / 4 ), $threshold_seconds );

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

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