Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

WordPress hook directory
redirect_canonical

Description

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.

WordPress version history for redirect_canonical

This database has information for all major versions from WP 1.2.1 through 6.2.

Version File Line Type
2.3 wp-includes/canonical.php 161 View in context filter
2.5 wp-includes/canonical.php 194 View in context filter
2.6 wp-includes/canonical.php 199 View in context filter
2.7 wp-includes/canonical.php 286 View in context filter
2.8 wp-includes/canonical.php 286 View in context filter
2.9 wp-includes/canonical.php 292 View in context filter
3.0 wp-includes/canonical.php 348 View in context filter
3.1 wp-includes/canonical.php 359 View in context filter
3.2 wp-includes/canonical.php 378 View in context filter
3.3 wp-includes/canonical.php 399 View in context filter
3.4 wp-includes/canonical.php 420 View in context filter
3.5 wp-includes/canonical.php 422 View in context filter
3.6 wp-includes/canonical.php 422 View in context filter
3.7 wp-includes/canonical.php 446 View in context filter
3.8 wp-includes/canonical.php 446 View in context filter
3.9 wp-includes/canonical.php 446 View in context filter
4.0 wp-includes/canonical.php 472 View in context filter
4.1 wp-includes/canonical.php 468 View in context filter
4.2 wp-includes/canonical.php 473 View in context filter
4.3 wp-includes/canonical.php 476 View in context filter
4.4 wp-includes/canonical.php 489 View in context filter
4.5 wp-includes/canonical.php 497 View in context filter
4.6 wp-includes/canonical.php 506 View in context filter
4.7 wp-includes/canonical.php 506 View in context filter
4.8 wp-includes/canonical.php 506 View in context filter
4.9 wp-includes/canonical.php 523 View in context filter
5.0 wp-includes/canonical.php 523 View in context filter
5.1 wp-includes/canonical.php 573 View in context filter
5.2 wp-includes/canonical.php 576 View in context filter
5.3 wp-includes/canonical.php 597 View in context filter
5.4 wp-includes/canonical.php 605 View in context filter
5.5 wp-includes/canonical.php 755 View in context filter
5.6 wp-includes/canonical.php 753 View in context filter
5.7 wp-includes/canonical.php 789 View in context filter
5.8 wp-includes/canonical.php 789 View in context filter
5.9 wp-includes/canonical.php 789 View in context filter
6.0 wp-includes/canonical.php 789 View in context filter
6.1 wp-includes/canonical.php 789 View in context filter
6.2 wp-includes/canonical.php 791 View in context filter

Related Hooks

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.