[wp-trac] [WordPress Trac] #38846: Add `$taxonomy_object` parameter in `registered_taxonomy` action.

WordPress Trac noreply at wordpress.org
Sat Nov 19 01:02:09 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:
-------------------------+------------------------------

Comment (by Toro_Unit):

 Replying to [comment:1 swissspidy]:
 > 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.

 Sure it is right.
 Thanks!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38846#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list