filtrod 5.5.0
pre_redirect_guess_404_permalink
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$pre | null | string | false | Whether to short-circuit guessing the redirect for a 404. Default null to continue with the URL guessing. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'pre_redirect_guess_404_permalink', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'pre_redirect_guess_404_permalink', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii