WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_redirect_guess_404_permalink

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/canonical.php apply_filters 917 /**
* 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.
*/

Hook Parameters

Parameter Type Name Description
null|string|false $pre Whether to short-circuit guessing the redirect for a 404.