W3cubDocs

/WordPress

apply_filters( 'strict_redirect_guess_404_permalink', bool $strict_guess )

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

Description

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

Parameters

$strict_guess

(bool) Whether to perform a strict guess. Default false (loose guess).

Source

File: wp-includes/canonical.php

View on Trac

Changelog

Version Description
5.5.0 Introduced.

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