wp_body_open() WordPress Function
The wp_body_open() function was introduced in Wordpress 4.6. It allows themes and plugins to insert code immediately after the opening
tag. This can be useful for adding custom styles or JavaScript code to the page.wp_body_open() #
Fire the wp_body_open action.
Description
See ‘wp_body_open’.
Source
File: wp-includes/general-template.php
function wp_body_open() { /** * Triggered after the opening body tag. * * @since 5.2.0 */ do_action( 'wp_body_open' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |