WordPress at a glance
filter is not described

do_redirect_guess_404_permalink filter-hook . WP 5.5.0

Filters whether to attempt to guess a redirect URL for a 404 request.

Returning a false value from the filter will disable the URL guessing and return early without performing a redirect.

Usage

add_filter( 'do_redirect_guess_404_permalink', 'filter_function_name_8090' );
function filter_function_name_8090( $do_redirect_guess ){
	// filter...

	return $do_redirect_guess;
}
$do_redirect_guess(true/false)
Whether to attempt to guess a redirect URL for a 404 request.
Default: true

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

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

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

redirect_guess_404_permalink()
do_redirect_guess_404_permalink
wp-includes/canonical.php 858
if ( false === apply_filters( 'do_redirect_guess_404_permalink', true ) ) {

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

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