pre_redirect_guess_404_permalink

FILTER wp-includes\canonical.php (ligne 955) github
Short-circuits the redirect URL guessing for 404 requests. Returning a non-null value from the filter will effectively short-circuit the URL guessing, returning the passed value instead.

Paramètres

Entrée :
null
Sortie :
@param null|string|false $pre Whether to short-circuit guessing the redirect for a 404.

Utilisation

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

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

Actualités

Chargement des actualités...