Using WordPress ‘wp_head()’ PHP function

The wp_head() WordPress PHP function is used to trigger the wp_head action, which allows developers to add custom scripts, styles, or other elements within the <head></head> section of a WordPress site.

Usage

<head>
	<!-- First add the elements you need in <head>; then last, add: -->
	<?php wp_head(); ?>
</head>

Parameters

None

More information

See WordPress Developer Resources: wp_head()