action_scheduler_reset_action

ACTION woocommerce\packages\action-scheduler\classes\ActionScheduler_QueueCleaner.php (ligne 193) github
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.

Paramètres

Entrée :
$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).

Utilisation

// 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é');
}

Actualités

Chargement des actualités...