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.
$do_redirect_guessbool
if ( false === apply_filters( 'do_redirect_guess_404_permalink', true ) ) {
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/do_redirect_guess_404_permalink