do_redirect_guess_404_permalink

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'do_redirect_guess_404_permalink', bool $do_redirect_guess )

Description Description

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

Parameters Parameters

$do_redirect_guess

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

Source Source

File: wp-includes/canonical.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Advertisement

Leave a Reply