A WordPress-centric search engine for devs and theme authors



strict_redirect_guess_404_permalink ›

Since5.5.0
Deprecatedn/a
apply_filters( 'strict_redirect_guess_404_permalink', false )
Parameters:
  • (bool) $strict_guess Whether to perform a strict guess. Default false (loose guess).
    Required: Yes
Defined at:
Codex:

Filters whether to perform a strict guess for a 404 redirect.

Returning a truthy value from the filter will redirect only exact post_name matches.





Source

$strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );