wp_head() WordPress Function

The wp_head() function is used to insert code into the head tag of a WordPress site. This function is typically used to add style sheets, JavaScript, and other meta information to a WordPress site.

wp_head() #

Fire the wp_head action.


Description

See ‘wp_head’.


Top ↑

Source

File: wp-includes/general-template.php

function wp_head() {
	/**
	 * Prints scripts or data in the head tag on the front end.
	 *
	 * @since 1.5.0
	 */
	do_action( 'wp_head' );
}


Top ↑

Changelog

Changelog
VersionDescription
1.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