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

Short-circuits the redirect URL guessing for 404 requests.


Description Description

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


Top ↑

Parameters Parameters

$pre

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


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.