filtrod 3.0.0
blog_redirect_404
Opis — z kodu źródłowego
Filters the redirect URL for 404s on the main site.
The filter is only evaluated if the NOBLOGREDIRECT constant is defined.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$no_blog_redirect | string | The redirect URL defined in NOBLOGREDIRECT. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'blog_redirect_404', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'blog_redirect_404', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}