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

WordPress Trac noreply at wordpress.org
Fri Feb 22 17:47:02 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 chipbennett):

 Replying to [comment:61 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.

 I'm in the same boat. My concern is the establishment of a standard, not
 the color of the bikeshed. I went with the `wp_` prefix, since `wp_head`
 and `wp_footer` already have them, but have no real preference. I'd be
 happy to resubmit with the hooks un-prefixed?

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


More information about the wp-trac mailing list