apply_filters( 'redirect_canonical', string $redirect_url, string $requested_url )

Filters the canonical redirect URL.


Description

Returning false to this filter will cancel the redirect.


Top ↑

Parameters

$redirect_url string
The redirect URL.
$requested_url string
The requested URL.

Top ↑

Source

File: wp-includes/canonical.php. View all references

$redirect_url = apply_filters( 'redirect_canonical', $redirect_url, $requested_url );


Top ↑

Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes

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