strict_redirect_guess_404_permalink хук-фильтрWP 5.5.0

Filters whether to perform a strict guess for a 404 redirect.

Returning a truthy value from the filter will redirect only exact post_name matches.


add_filter( 'strict_redirect_guess_404_permalink', 'wp_kama_strict_redirect_guess_404_permalink_filter' );

 * Function for `strict_redirect_guess_404_permalink` filter-hook.
 * @param bool $strict_guess Whether to perform a strict guess.
 * @return bool
function wp_kama_strict_redirect_guess_404_permalink_filter( $strict_guess ){

	// filter...
	return $strict_guess;
Whether to perform a strict guess.
По умолчанию: false (loose guess)

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

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

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

wp-includes/canonical.php 932
$strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );

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

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