action_scheduler_maximum_execution_time_likely_to_be_exceeded

FILTER woocommerce\packages\action-scheduler\classes\abstracts\ActionScheduler_Abstract_QueueRunner.php (ligne 320) github
Check if the host's max execution time is (likely) to be exceeded if processing more actions.

Paramètres

Entrée :
$likely_to_be_exceeded, $this, $processed_actions, $execution_time, $max_execution_time
Sortie :
@param int $processed_actions The number of actions processed so far - used to determine the likelihood of exceeding the time limit if processing another action.
@return bool

Utilisation

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

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

Actualités

Chargement des actualités...