[wp-trac] [WordPress Trac] #12563: New action on body open

WordPress Trac noreply at wordpress.org
Fri Sep 13 09:38:24 UTC 2013

#12563: New action on body open
 Reporter:  joostdevalk      |       Owner:  joostdevalk
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:
Component:  Themes           |     Version:  3.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |
Changes (by Denis-de-Bernardy):

 * keywords:  has-patch => has-patch close
 * status:  closed => reopened
 * resolution:  wontfix =>


 Replying to [comment:26 c3mdigital]:
 > The only two things themes must absolutely have are wp_head() and

 It seems to me, that this ticket seeks to address precisely that point..
 Some kind of wp_body() call would be most welcome in addition, and this
 ticket suggests that WP support it and lead by example.

 > This is theme territory.

 The ticket's very nature makes it WP territory.


 I'm not making much sense of why this never got checked in three years
 ago. The argument that themes won't adopt it fast enough is laughably
 specious. They certainly won't adopt it if WP doesn't set the example.

 If there's a standardized hook here, every theme that supports the hook
 will make a user happy at some point or another, by saving him the work
 needed to manually add some piece of code. It's useful for output buffers,
 for asynchronous scripts, and of course for the occasional need to output
 a full on menu when you're unclear on the fact that it can be inserted any
 other way (not everyone is a web development wizard).

 Yeah, there are workarounds using output buffers, and so forth. But
 honestly, in my experience, they break the minute you've some odd markup
 lying around. A simple hook that endorses a name that every theme
 developer can then use would make everyone's life so much simpler:
 developers (only a hook to worry about) and users (always the same hook to
 add -- once).

Ticket URL: <http://core.trac.wordpress.org/ticket/12563#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list