Unclaim pending actions that have not been run within a given time limit. When called by ActionScheduler_Abstract_QueueRunner::run_cleanup(), the time limit passed as a parameter is 10x the time limit used for queue processing.
$action_id
Sortie :
@param int $time_limit The number of seconds to allow a queue to run before unclaiming its pending actions. Default 300 (5 minutes).
// Ajouter une fonction au hook action 'action_scheduler_reset_action'
add_action('action_scheduler_reset_action', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($action_id) {
// Votre code ici
error_log('Hook action_scheduler_reset_action déclenché');
}
Chargement des actualités...