wp_head
head-metaOutputs content in the <head> section
wp_head is the print slot inside document head. Use it for meta tags and inline snippets — not for enqueueing CSS or JS files.
Signature
do_action( 'wp_head' );Example
add_action( 'wp_head', function() {
echo '<meta name="theme-color" content="#0073aa">';
} );Common Use Cases
- Enqueue custom meta tags
- Output inline styles or scripts
- Add Open Graph / SEO tags
- Insert tracking pixels