Allow 3rd party code to change the instantiated action for a given hook, args, schedule and group.
$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.
// 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;
}
Chargement des actualités...