[wp-trac] [WordPress Trac] #10408: Standard Naming of Hooks in Themes

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 16 21:14:07 UTC 2009


#10408: Standard Naming of Hooks in Themes
-------------------------+--------------------------------------------------
 Reporter:  dcole07      |       Owner:  dcole07 
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  2.9     
Component:  Themes       |     Version:  2.9     
 Severity:  normal       |    Keywords:  close   
-------------------------+--------------------------------------------------

Comment(by junsuijin):

 Replying to [comment:10 dcole07]:
 > Replying to [comment:9 Denis-de-Bernardy]:
 > > Note the complete absence of hooks in the second one. It took me an
 awful lot of time to reeducate users.
 >
 > Inserting code manually is a bad idea in so many ways. I think it's
 clear we don't want just anyone doing that. Having hooks creates problems
 because plugins actually use them, but theme authors don't care enough to
 add them or something. So what's a solution to this problem? The current
 way is far from perfect IMO... It seams like we have to put the burden on
 someone, who should it be? End users? Plugin developers? Theme Developers?
 Were currently putting in on End users, because plugins are making end
 users copy and paste code in manually. (Not to mention the other side
 effects of them doing that.) A solution is not to force plugin developers
 to come up with some obscure way of adding code in automatically. It's
 clearly not working now.

 What's wrong with using widgets for most of the things plugins want to
 insert into themes? Widgets have been greatly enhanced and simplified with
 2.8. If the plugin wants to insert something in an area that is not
 accessible by a dynamic sidebar, then there is likely already a hook to
 place it correctly anyway (such as at the end or beginning of posts, etc).
 If plugin developers provide widgets and options to hook onto any other
 areas they wish to modify in a theme, I don't see any real reason to make
 any standardized hooks that aren't already included.

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


More information about the wp-trac mailing list