action_scheduler_stored_action_instance

FILTER woocommerce\packages\action-scheduler\classes\ActionScheduler_ActionFactory.php (ligne 56) github
Allow 3rd party code to change the instantiated action for a given hook, args, schedule and group.

Paramètres

Entrée :
$action, $hook, $args, $schedule, $group, $priority
Sortie :
@param ActionScheduler_Action   $action The instantiated action.
@param string                   $hook The instantiated action's hook.
@param array                    $args The instantiated action's args.
@param ActionScheduler_Schedule $schedule The instantiated action's schedule.
@param string                   $group The instantiated action's group.
@param int                      $priority The action priority.

Utilisation

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

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

Actualités

Chargement des actualités...