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

If a recurring action is assessed as consistently failing, it will not be rescheduled. This hook provides a way to observe and optionally override that assessment.

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

add_filter( 'action_scheduler_recurring_action_is_consistently_failing', 'wp_kama_action_scheduler_recurring_is_consistently_failing_filter', 10, 2 );

/**
 * Function for `action_scheduler_recurring_action_is_consistently_failing` filter-hook.
 * 
 * @param bool                   $is_consistently_failing If the action is considered to be consistently failing.
 * @param ActionScheduler_Action $action                  The action being assessed.
 *
 * @return bool
 */
function wp_kama_action_scheduler_recurring_is_consistently_failing_filter( $is_consistently_failing, $action ){

	// filter...
	return $is_consistently_failing;
}
$is_consistently_failing(true|false)
If the action is considered to be consistently failing.
$action(ActionScheduler_Action)
The action being assessed.

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

ActionScheduler_Abstract_QueueRunner::recurring_action_is_consistently_failing()
action_scheduler_recurring_action_is_consistently_failing
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php 216-220
return (bool) apply_filters(
	'action_scheduler_recurring_action_is_consistently_failing',
	$first_action_id_with_the_same_hook === $first_failing_action_id,
	$action
);

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

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