Temporary error handler which can catch errors and convert them into exceptions. This facilitates more robust error handling across all supported PHP versions.
$action_id, $context
Sortie :
@param int $type Error level expressed as an integer. @param string $message Error message.
// Ajouter une fonction au hook action 'action_scheduler_before_execute'
add_action('action_scheduler_before_execute', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($action_id, $context) {
// Votre code ici
error_log('Hook action_scheduler_before_execute déclenché');
}
Chargement des actualités...