[wp-trac] [WordPress Trac] #15723: admin_bar_menu Hook Pass Back Admin Bar Instance

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 15 16:56:56 UTC 2010


#15723: admin_bar_menu Hook Pass Back Admin Bar Instance
-----------------------------+------------------
 Reporter:  TheDeadMedic     |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  3.1
Component:  Menus            |     Version:  3.1
 Severity:  minor            |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------
Changes (by JohnPBloch):

 * keywords:   => has-patch


Comment:

 Using `do_action_ref_array()` as TheDeadMedic suggested works fine. If the
 callback doesn't take an argument this will still work (and the object
 will still be accessible by `using func_get_args()`).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15723#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list