Filter to override retrieving a scheduled event. Returning a non-null value will short-circuit the normal process, returning the filtered value instead. Return false if the event does not exist, otherwise an event object should be returned.
null, $hook, $args, $timestamp
Sortie :
@param null|false|object $pre Value to return instead. Default null to continue retrieving the event. @param string $hook Action hook of the event. @param array $args Array containing each separate argument to pass to the hook's callback function. @param int|null $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event.
// Modifier la valeur avec le filtre 'pre_get_scheduled_event'
add_filter('pre_get_scheduled_event', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...