This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
💡 Add wp_body_open
hook to included themes
#239
Labels
status: needs triage
This issue needs revision, splitting, or other gardening work
type: feature request
New feature or request
Context
WordPress 5.2.0 introduced a new template hook,
wp_body_open
, which fires immediately after the openingbody
tag.This hook can be useful for outputting custom content before any of a theme's body content starts to output.
As a default WordPress hook, though, it should be included so that plugins and tinkerers can take advantage of it just as they do
wp_head
andwp_footer
.The hook is described here: https://developer.wordpress.org/reference/hooks/wp_body_open/
Possible implemantion
No response
Possible Solution
Include
<?php do_action( 'wp_body_open' ); ?>
or similar after the openingbody
tag in each of the included themes.Will you be able to help with the implementation?
This is a quick and simple thing that shouldn't cause anything to break, but I'd be willing to test. Not submitting a pull request myself because of how busy I'm going to be this month with work and preparing for a nursery for my upcoming baby. :-)
The text was updated successfully, but these errors were encountered: