apply_filters( 'do_redirect_guess_404_permalink', bool $do_redirect_guess )

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


Description Description

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


Top ↑

Parameters Parameters

$do_redirect_guess

(bool) Whether to attempt to guess a redirect URL for a 404 request. Default true.


Top ↑

Source Source

File: wp-includes/canonical.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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