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

Filters the canonical redirect URL.

Description Description

Returning false to this filter will cancel the redirect.

Parameters Parameters


(string) The redirect URL.


(string) The requested URL.

Top ↑

Source Source

File: wp-includes/canonical.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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