Description
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.
Occurrences
Filename | Line Number |
---|---|
wp-includes/canonical.php | 964 |
Parameters
Type | Name | Description |
---|---|---|
bool | $strict_guess | Whether to perform a strict guess. Default false (loose guess). |
PHP Doc
/**
* 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.
*
* @since 5.5.0
*
* @param bool $strict_guess Whether to perform a strict guess. Default false (loose guess).
*/