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

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 3 02:45:52 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:         
-------------------------+--------------------------------------------------
 WordPress should be able to process more than one hook name at a single
 location. I know there shouldn't be a big need for it, but it helps if
 hook names are changed or if a 3rd party wants two hook names to be
 applies to the same location.

 Example:
 What if I wanted to attach a function to thematic_header, hybrid_header,
 prodigy_header, and theme_header. It's the same location in different
 themes. It'd be nice to tell WordPress these are the same, rather than
 defining 5 add_actions for each function you attach.

 I'm willing to work on this enhancement. do_action and apply_filters would
 need to be modified and a new function would need to be created (What to
 call it?).

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


More information about the wp-trac mailing list