[wp-trac] [WordPress Trac] #21506: Standard Theme Hooks

WordPress Trac noreply at wordpress.org
Fri Feb 22 17:36:43 UTC 2013


#21506: Standard Theme Hooks
---------------------------+------------------------------
 Reporter:  mfields        |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------

Comment (by rzen):

 I think we could drop the wp_ prefix and just name the hooks literally
 (e.g. header_before). Personally, though, I think  {$position}_{$location}
 reads more friendly, particularly when i'm thinking about it in the
 context of {{{add_action( 'before_header',
 'my_stuff_that_comes_before_the_header' );}}}

 But, I wouldn't be heartbroken if everyone else disagreed. I could
 certainly get behind standardizing on "wp_header_before" instead of
 "before_header" if it meant the difference between gaining standard hooks
 and forgoing them.

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


More information about the wp-trac mailing list