[wp-trac] [WordPress Trac] #14458: Create rel_canonical filter
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 29 21:48:34 UTC 2010
#14458: Create rel_canonical filter
-------------------------+--------------------------------------------------
Reporter: wjm | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 3.0
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Wouldn't it be nice to be able to set the canonical rel value.
This comes in handy when you create a duplicate page and be able to
manipulate the cannonical value.
Usage:
{{{
add_filter( 'rel_canonical', 'childtheme_rel_canonical', 10, 2 );
function childtheme_rel_canonical( $link, $id ) {
return get_permalink( 55 );
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14458>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list