[wp-trac] [WordPress Trac] #14994: Introduce a way to identify a hook in progress

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 30 14:52:53 UTC 2010


#14994: Introduce a way to identify a hook in progress
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.1
Component:  Plugins       |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by scribu):

 It would be nice if we had consistent names and behaviour:

  * current_hook()
  * doing_hook()
  * did_hook()

 On did_hook(): Both do_action() and apply_filters() can be called multiple
 times, so there's no reason to artificially limit ourselves to
 did_action().

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


More information about the wp-trac mailing list