doing_it_wrong_trigger_error

FILTER wp-includes\functions.php (ligne 6033) github
Filters whether to trigger an error for _doing_it_wrong() calls.

Paramètres

Entrée :
true, $function_name, $message, $version
Sortie :
@param bool   $trigger       Whether to trigger the error for _doing_it_wrong() calls. Default true.
@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

// Modifier la valeur avec le filtre 'doing_it_wrong_trigger_error'
add_filter('doing_it_wrong_trigger_error', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(true) {
    // Modifier la valeur
    return true;
}

Actualités

Chargement des actualités...