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.
5
Sortie :
@param int $failure_threshold Number of actions of the same hook to examine for failure. Defaults to 5.
// 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;
}
Chargement des actualités...