Short-circuits the redirect URL guessing for 404 requests.
Returning a non-null value from the filter will effectively short-circuit the URL guessing, returning the passed value instead.
$prenull|string|false
$pre = apply_filters( 'pre_redirect_guess_404_permalink', null );
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_redirect_guess_404_permalink