Fires when the given function is being used incorrectly.
$function_name, $message, $version
Sortie :
@param string $function_name The function that was called. @param string $message A message explaining what has been done incorrectly. @param string $version The version of WordPress where the message was added.
// Ajouter une fonction au hook action 'doing_it_wrong_run'
add_action('doing_it_wrong_run', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($function_name, $message, $version) {
// Votre code ici
error_log('Hook doing_it_wrong_run déclenché');
}
Chargement des actualités...