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’.
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' );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |