Filter to override unscheduling of events. Returning a non-null value will short-circuit the normal unscheduling process, causing the function to return the filtered value instead. For plugins replacing wp-cron, return true if the event was successfully unscheduled, false or a WP_Error if not.
null, $timestamp, $hook, $args, $wp_error
Sortie :
@param null|bool|WP_Error $pre Value to return instead. Default null to continue unscheduling the event. @param int $timestamp Unix timestamp (UTC) for when to run the event. @param string $hook Action hook, the execution of which will be unscheduled. @param array $args Arguments to pass to the hook's callback function. @param bool $wp_error Whether to return a WP_Error on failure.
// Modifier la valeur avec le filtre 'pre_unschedule_event'
add_filter('pre_unschedule_event', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...