doing_it_wrong_run

ACTION wp-includes\functions.php (ligne 6020) github
Fires when the given function is being used incorrectly.

Paramètres

Entrée :
$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.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...