action_scheduler_run_queue

ACTION woocommerce\packages\action-scheduler\classes\ActionScheduler_AsyncRequest_QueueRunner.php (ligne 48) github
Handle async requests Run a queue, and maybe dispatch another async request to run another queue if there are still pending actions after completing a queue in this request.

Paramètres

Entrée :
'Async Request'
Sortie :
N/A

Utilisation

// Ajouter une fonction au hook action 'action_scheduler_run_queue'
add_action('action_scheduler_run_queue', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee('Async Request') {
    // Votre code ici
    error_log('Hook action_scheduler_run_queue déclenché');
}

Actualités

Chargement des actualités...