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.


Parameters

$redirect_url

The redirect URL.

$requested_url

The requested URL.


Source

File: wp-includes/canonical.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.3.0 Introduced.