Filter hook 'pre_redirect_guess_404_permalink'
in WP Core File wp-includes/canonical.php at line 946
Description
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.
Occurrences
Filename |
Line Number |
wp-includes/canonical.php |
946 |
Parameters
Type |
Name |
Description |
null|string|false |
$pre |
Whether to short-circuit guessing the redirect for a 404. Default null to continue with the URL guessing. |
PHP Doc
/**
* 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.
*
* @since 5.5.0
*
* @param null|string|false $pre Whether to short-circuit guessing the redirect for a 404.
* Default null to continue with the URL guessing.
*/