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.
null
Sortie :
@param null|string|false $pre Whether to short-circuit guessing the redirect for a 404.
// 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;
}
Chargement des actualités...