[wp-trac] [WordPress Trac] #14449: Create add_permastruct() filters for register_taxonomy() and register_post_type()
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 28 23:31:19 UTC 2010
#14449: Create add_permastruct() filters for register_taxonomy() and
register_post_type()
-------------------------+--------------------------------------------------
Reporter: wjm | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
When registering taxonomies { using register_taxonomy() }, it would be
good to have a filter that controls the $struct argument for
add_permastruct().
That way you can modify the rewrite rules without having to hack
$wp_filters->rules
This patch creates the filter "register_taxonomy_permastruct"
Note: the same could be applied to register_post_type()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14449>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list