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

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 19 04:20:41 UTC 2012


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

 * cc: justin@… (added)


Comment:

 If the goal is standardization and to get theme authors on board, just
 offering `*_after` hooks won't cut it.  The way I see it, it's practically
 useless to have the four proposed standard hooks for `*_after` but have
 non-standard hooks for `*_before`.

 Basically, if I created a theme called "Awesome", I'd have these hooks
 (following .ORG theme repo guidelines, of course):

 {{{
 awesome_header_before // custom hook
 header_after // WP hook

 awesome_post_before
 post_after

 awesome_comment_before
 comment_after

 awesome_footer_before
 footer_after
 }}}

 That's actually worse than not having any sort of standardization.

 The proposed idea is a step in the right direction, but I could never see
 myself using it as a theme developer because it would confuse all but the
 most WordPress-savvy of my users who actually use hooks.

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


More information about the wp-trac mailing list