action_scheduler_recurring_action_failure_threshold

FILTER woocommerce\packages\action-scheduler\classes\abstracts\ActionScheduler_Abstract_QueueRunner.php (ligne 201) github
Controls the failure threshold for recurring actions. Before rescheduling a recurring action, we look at its status. If it failed, we then check if all of the most recent actions (upto the threshold set by this filter) sharing the same hook have also failed: if they have, that is considered consistent failure and a new instance of the action will not be scheduled.

Paramètres

Entrée :
5
Sortie :
@param int $failure_threshold Number of actions of the same hook to examine for failure. Defaults to 5.

Utilisation

// Modifier la valeur avec le filtre 'action_scheduler_recurring_action_failure_threshold'
add_filter('action_scheduler_recurring_action_failure_threshold', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(5) {
    // Modifier la valeur
    return 5;
}

Actualités

Chargement des actualités...