[wp-trac] [WordPress Trac] #38846: Add `$taxonomy_object` parameter in `registered_taxonomy` action.
WordPress Trac
noreply at wordpress.org
Fri Nov 18 07:58:12 UTC 2016
#38846: Add `$taxonomy_object` parameter in `registered_taxonomy` action.
-------------------------+------------------------------
Reporter: Toro_Unit | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Changes (by swissspidy):
* keywords: => has-patch
Comment:
It would indeed be easy to add this, but one can also just use
`get_taxonomy( $taxonomy );` in their callback, which I believe most
developers are already using. So there's no real benefit in passing the
taxonomy object to the hook.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38846#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list