WordPress at a glance
filter is not described

redirect_canonical filter-hook . WP 2.3.0

Filters the canonical redirect URL.

Returning false to this filter will cancel the redirect.

Usage

add_filter( 'redirect_canonical', 'filter_function_name_8212', 10, 2 );
function filter_function_name_8212( $redirect_url, $requested_url ){
	// filter...

	return $redirect_url;
}
$redirect_url(string)
The redirect URL.
$requested_url(string)
The requested URL.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

redirect_canonical()
redirect_canonical
wp-includes/canonical.php 605
$redirect_url = apply_filters( 'redirect_canonical', $redirect_url, $requested_url );

Where in WP core the hook is used

Usage not found!