[wp-trac] Re: [WordPress Trac] #10334: Multiple Names for One Hook

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 3 04:22:28 UTC 2009


#10334: Multiple Names for One Hook
-------------------------+--------------------------------------------------
 Reporter:  dcole07      |       Owner:  dcole07
     Type:  enhancement  |      Status:  new    
 Priority:  normal       |   Milestone:  2.9    
Component:  Taxonomy     |     Version:  2.9    
 Severity:  trivial      |    Keywords:         
-------------------------+--------------------------------------------------

Comment(by dcole07):

 There wouldn't be a need for a new function, although it may make things
 nicer for people. If apply_filter and do_action looped through the array
 $wp_current_filter, then multiple hook names could be executed at once.
 The 'all' hook could add extra hook names into $wp_current_filter. The
 only other thing that would need to change is the array_pop(
 $wp_current_filter );

 What does everyone think?

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


More information about the wp-trac mailing list