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’.


Top ↑

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' );
}


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More