A WordPress-centric search engine for devs and theme authors



blog_redirect_404 ›

Since3.0.0
Deprecatedn/a
apply_filters( 'blog_redirect_404', NOBLOGREDIRECT )
Parameters:
  • (string) $no_blog_redirect The redirect URL defined in NOBLOGREDIRECT.
    Required: Yes
Defined at:
Codex:

Filters the redirect URL for 404s on the main site.

The filter is only evaluated if the NOBLOGREDIRECT constant is defined.





Source

if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) {