pre_redirect_guess_404_permalink

Advertisement

Summery Summery

Short-circuits the redirect URL guessing for 404 requests.

Syntax Syntax

apply_filters( 'pre_redirect_guess_404_permalink', null|string|false $pre )

Description Description

Returning a non-null value from the filter will effectively short-circuit the URL guessing, returning the passed value instead.

Parameters Parameters

$pre

(null|string|false) Whether to short-circuit guessing the redirect for a 404. Default null to continue with the URL guessing.

Source Source

File: wp-includes/canonical.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.