Can be used to cancel a "canonical" URL redirect. Accepts 2 parameters: $redirect_url, $requested_url. To cancel the redirect return FALSE, to allow the redirect return $redirect_url
This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.
This database has information for all major versions from WP 1.2.1 through 3.5.
| Version | File | Line | Type | |
|---|---|---|---|---|
| 2.3 | wp-includes/canonical.php | 161 | View hook in source | filter |
| 2.5 | wp-includes/canonical.php | 194 | View hook in source | filter |
| 2.6 | wp-includes/canonical.php | 199 | View hook in source | filter |
| 2.7 | wp-includes/canonical.php | 286 | View hook in source | filter |
| 2.8 | wp-includes/canonical.php | 286 | View hook in source | filter |
| 2.9 | wp-includes/canonical.php | 292 | View hook in source | filter |
| 3.0 | wp-includes/canonical.php | 348 | View hook in source | filter |
| 3.1 | wp-includes/canonical.php | 359 | View hook in source | filter |
| 3.2 | wp-includes/canonical.php | 378 | View hook in source | filter |
| 3.3 | wp-includes/canonical.php | 399 | View hook in source | filter |
| 3.4 | wp-includes/canonical.php | 420 | View hook in source | filter |
| 3.5 | wp-includes/canonical.php | 422 | View hook in source | filter |
We find related hooks using word stems. redirect_canonical has 2 significant word stem(s): redirect, canonical. Note that some of the hooks below may not appear in all versions of WP.