apply_filters( ‘strict_redirect_guess_404_permalink’, bool $strict_guess )

In this article

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

Description

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

Parameters

$strict_guessbool
Whether to perform a strict guess. Default false (loose guess).

Source

$strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.