On this page
apply_filters( 'blog_redirect_404', string $no_blog_redirect )
Filters the redirect URL for 404s on the main site.
Description
The filter is only evaluated if the NOBLOGREDIRECT constant is defined.
Parameters
$no_blog_redirectstring-
The redirect URL defined in NOBLOGREDIRECT.
Source
File: wp-includes/ms-functions.php. View all references
$destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT );
Related
Used By
| Used By | Description |
|---|---|
| maybe_redirect_404() wp-includes/ms-functions.php | Corrects 404 redirects when NOBLOGREDIRECT is defined. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/blog_redirect_404