wp_head action-hookWP 1.5.0

Prints scripts or data in the head tag on the front end.

Usage

add_action( 'wp_head', 'wp_kama_head_action' );

/**
 * Function for `wp_head` action-hook.
 * 
 * @return void
 */
function wp_kama_head_action(){

	// action...
}

Changelog

Since 1.5.0 Introduced.

Where the hook is called

wp_head()
wp_head

Where the hook is used in WordPress

wp-activate.php 117
add_action( 'wp_head', 'wpmu_activate_stylesheet' );
wp-activate.php 118
add_action( 'wp_head', 'wp_strict_cross_origin_referrer' );
wp-activate.php 98
add_action( 'wp_head', 'do_activate_header' );
wp-includes/admin-bar.php 1276
remove_action( 'wp_head', $header_callback );
wp-includes/block-template.php 100
add_action( 'wp_head', '_block_template_viewport_meta_tag', 0 );
wp-includes/block-template.php 103
remove_action( 'wp_head', '_wp_render_title_tag', 1 ); // Remove conditional title tag rendering...
wp-includes/block-template.php 104
add_action( 'wp_head', '_block_template_render_title_tag', 1 ); // ...and make it unconditional.
wp-includes/class-wp-admin-bar.php 53
add_action( 'wp_head', 'wp_admin_bar_header' );
wp-includes/class-wp-admin-bar.php 70
add_action( 'wp_head', $header_callback );
wp-includes/class-wp-customize-manager.php 1942
add_action( 'wp_head', array( $this, 'customize_preview_loading_style' ) );
wp-includes/class-wp-customize-manager.php 1943
add_action( 'wp_head', array( $this, 'remove_frameless_preview_messenger_channel' ) );
wp-includes/default-filters.php 320
add_action( 'wp_head', 'rest_output_link_wp_head', 10, 0 );
wp-includes/default-filters.php 333
add_action( 'wp_head', '_wp_render_title_tag', 1 );
wp-includes/default-filters.php 334
add_action( 'wp_head', 'wp_enqueue_scripts', 1 );
wp-includes/default-filters.php 335
add_action( 'wp_head', 'wp_resource_hints', 2 );
wp-includes/default-filters.php 336
add_action( 'wp_head', 'wp_preload_resources', 1 );
wp-includes/default-filters.php 337
add_action( 'wp_head', 'feed_links', 2 );
wp-includes/default-filters.php 338
add_action( 'wp_head', 'feed_links_extra', 3 );
wp-includes/default-filters.php 339
add_action( 'wp_head', 'rsd_link' );
wp-includes/default-filters.php 340
add_action( 'wp_head', 'locale_stylesheet' );
wp-includes/default-filters.php 342
add_action( 'wp_head', 'wp_robots', 1 );
wp-includes/default-filters.php 343
add_action( 'wp_head', 'print_emoji_detection_script', 7 );
wp-includes/default-filters.php 344
add_action( 'wp_head', 'wp_print_styles', 8 );
wp-includes/default-filters.php 345
add_action( 'wp_head', 'wp_print_head_scripts', 9 );
wp-includes/default-filters.php 346
add_action( 'wp_head', 'wp_generator' );
wp-includes/default-filters.php 347
add_action( 'wp_head', 'rel_canonical' );
wp-includes/default-filters.php 348
add_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
wp-includes/default-filters.php 349
add_action( 'wp_head', 'wp_custom_css_cb', 101 );
wp-includes/default-filters.php 350
add_action( 'wp_head', 'wp_site_icon', 99 );
wp-includes/default-filters.php 463
add_action( 'wp_head', 'wp_post_preview_js', 1 );
wp-includes/default-filters.php 526
add_action( 'wp_head', '_custom_logo_header_styles' );
wp-includes/default-filters.php 612
add_action( 'wp_head', 'wp_maybe_inline_styles', 1 ); // Run for styles enqueued in <head>.
wp-includes/default-filters.php 677
add_action( 'wp_head', 'wp_oembed_add_discovery_links' );
wp-includes/default-filters.php 678
add_action( 'wp_head', 'wp_oembed_add_host_js' ); // Back-compat for sites disabling oEmbed host JS by removing action.
wp-includes/default-filters.php 750
add_action( 'wp_head', 'wp_print_font_faces', 50 );
wp-includes/deprecated.php 2405
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+.
wp-includes/script-loader.php 2529
remove_action( 'wp_head', 'wp_custom_css_cb', 101 );
wp-includes/theme.php 2917
add_action( 'wp_head', $args[0]['wp-head-callback'] );
wp-includes/theme.php 2931
add_action( 'wp_head', $args[0]['wp-head-callback'] );
wp-includes/theme.php 3072
remove_action( 'wp_head', $support[0]['wp-head-callback'] );
wp-includes/theme.php 3086
remove_action( 'wp_head', $support[0]['wp-head-callback'] );
wp-includes/widgets/class-wp-widget-recent-comments.php 35
add_action( 'wp_head', array( $this, 'recent_comments_style' ) );
wp-signup.php 30
add_action( 'wp_head', 'do_signup_header' );
wp-signup.php 87
add_action( 'wp_head', 'wpmu_signup_stylesheet' );