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

WordPress Trac noreply at wordpress.org
Thu Mar 21 11:42:13 UTC 2019


#12563: New action on body open
-------------------------------------------------+-------------------------
 Reporter:  joostdevalk                          |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Bundled Theme                        |     Version:  3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch commit needs-dev-note      |     Focuses:  template
  close                                          |
-------------------------------------------------+-------------------------

Comment (by sky_76):

 Replying to [comment:63 apedog]:
 > I've just read through this entire thread and am frankly baffled. I'm
 used to seeing discussion thread around feature requests on different
 repositories. And quite a few where the project leads refuse those feature
 requests on ideological and design philosophy grounds. Even if those leads
 accept that the feature might be useful to a portion of the users.
 >
 > But this is not the case here. The feature is rejected without any
 cogent reason. 'WordPress has survived for 8 years without this useful
 feature' is given as a valid reason. 'GMT hooking into body tag will soon
 be a thing of the past' - another reply. 'Themes will not adopt this' was
 one very un-forward-looking argument given (the recent push of Gutenberg
 being a clear example to the contrary - plugin developers have rushed to
 implement). And finally - 'Gutenberg is coming and it's gonna change
 EVERYTHING'. While the last might be true, it is irrelevant to the
 necessity of this hook. This has nothing to do with Gutenberg or with
 themes, and all to do with plugins that require hooking into the opening
 of the BODY tag.

 I absolutely agree, 100%.

 We are working with tools like Google Tag Manager for numerous clients and
 not having this feature has given us headaches for years.

 We need to insert specific code *right after* the opening <body> tag.

 Without other code - be it from templates, plugins, hooks or whatever - in
 between.

 Also not in the header, not in the footer and not at the end of the
 header.

 And most certainly not called late by get_header or something similar.

 Looking forward... Can it be done?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/12563#comment:66>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list