Filters the canonical redirect URL.
Returning false to this filter will cancel the redirect.
$redirect_urlstring
$requested_urlstring
$redirect_url = apply_filters( 'redirect_canonical', $redirect_url, $requested_url );
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/redirect_canonical