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.


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

	return $redirect_url;
The redirect URL.
The requested URL.

Where the hook is called

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

Where the hook is used (in WP core)

Использование не найдено.