W3cubDocs

/WordPress

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

$destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT );

Changelog

Version Description
3.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/blog_redirect_404