wpseek.com
A WordPress-centric search engine for devs and theme authors



do_redirect_guess_404_permalink › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'do_redirect_guess_404_permalink', true )
Parameters:
  • (bool) $do_redirect_guess Whether to attempt to guess a redirect URL for a 404 request. Default true.
    Required: Yes
Defined at:
Codex:

Filters whether to attempt to guess a redirect URL for a 404 request.

Returning a false value from the filter will disable the URL guessing and return early without performing a redirect.





Source

if ( false === apply_filters( 'do_redirect_guess_404_permalink', true ) ) {