action_scheduler_queue_runner_batch_size

FILTER woocommerce\packages\action-scheduler\classes\ActionScheduler_QueueRunner.php (ligne 157) github
Process actions in the queue. Attached to self::WP_CRON_HOOK i.e. 'action_scheduler_run_queue' The $context param of this method defaults to 'WP Cron', because prior to Action Scheduler 3.0.0 that was the only context in which this method was run, and the self::WP_CRON_HOOK hook had no context passed along with it. New code calling this method directly, or by triggering the self::WP_CRON_HOOK, should set a context as the first parameter. For an example of this, refer to the code seen in

Paramètres

Entrée :
25
Sortie :
@param string $context Optional identifier for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'
@return int The number of actions processed.

Utilisation

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

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

Actualités

Chargement des actualités...