Description
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.
Occurrences
Filename | Line Number |
---|---|
wp-includes/canonical.php | 931 |
Parameters
Type | Name | Description |
---|---|---|
bool | $do_redirect_guess | Whether to attempt to guess a redirect URL for a 404 request. Default true. |
PHP Doc
/**
* 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.
*
* @since 5.5.0
*
* @param bool $do_redirect_guess Whether to attempt to guess a redirect URL
* for a 404 request. Default true.
*/