WordPress at a glance
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_8910' );
function filter_function_name_8910( $pre ){
	// filter...

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

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.