WordPress at Your Fingertips
filter is not described

pre_redirect_guess_404_permalink filter-hook . WP 5.5.0

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.


add_filter( 'pre_redirect_guess_404_permalink', 'filter_function_name_4777' );
function filter_function_name_4777( $pre ){
	// filter...

	return $pre;
Whether to short-circuit guessing the redirect for a 404.
Default: null to continue with the URL guessing


Since 5.5.0 Introduced.

Where the hook is called

wp-includes/canonical.php 909
$pre = apply_filters( 'pre_redirect_guess_404_permalink', null );

Where in WP core the hook is used WordPress

Usage not found.