WordPress at Your Fingertips
action is not described

wp_head action-hook . WP 1.5.0

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

Usage

add_action( 'wp_head', 'action_function_name_2658' );
function action_function_name_2658(){
	// action...
}

Changelog

Since 1.5.0 Introduced.

Where the hook is called

wp_head()
wp_head
wp-includes/general-template.php 3015
do_action( 'wp_head' );

Where in WP core the hook is used WordPress

wp-activate.php 116
add_action( 'wp_head', 'wpmu_activate_stylesheet' );
wp-activate.php 117
add_action( 'wp_head', 'wp_strict_cross_origin_referrer' );
wp-activate.php 98
add_action( 'wp_head', 'do_activate_header' );
wp-includes/block-template.php 83
remove_action( 'wp_head', '_wp_render_title_tag', 1 ); // Remove conditional title tag rendering...
wp-includes/block-template.php 84
add_action( 'wp_head', '_block_template_render_title_tag', 1 ); // ...and make it unconditional.
wp-includes/block-template.php 80
add_action( 'wp_head', '_block_template_viewport_meta_tag', 0 );
wp-includes/class-wp-admin-bar.php 54
add_action( 'wp_head', 'wp_admin_bar_header' );
wp-includes/class-wp-admin-bar.php 71
add_action( 'wp_head', $header_callback );
wp-includes/class-wp-customize-manager.php 1929
add_action( 'wp_head', array( $this, 'customize_preview_loading_style' ) );
wp-includes/class-wp-customize-manager.php 1930
add_action( 'wp_head', array( $this, 'remove_frameless_preview_messenger_channel' ) );
wp-includes/default-filters.php 329
add_action( 'wp_head', 'wp_custom_css_cb', 101 );
wp-includes/default-filters.php 326
add_action( 'wp_head', 'wp_generator' );
wp-includes/default-filters.php 327
add_action( 'wp_head', 'rel_canonical' );
wp-includes/default-filters.php 328
add_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
wp-includes/default-filters.php 627
add_action( 'wp_head', 'wp_oembed_add_discovery_links' );
wp-includes/default-filters.php 330
add_action( 'wp_head', 'wp_site_icon', 99 );
wp-includes/default-filters.php 451
add_action( 'wp_head', 'wp_post_preview_js', 1 );
wp-includes/default-filters.php 517
add_action( 'wp_head', '_custom_logo_header_styles' );
wp-includes/default-filters.php 578
add_action( 'wp_head', 'wp_maybe_inline_styles', 1 ); // Run for styles enqueued in <head>.
wp-includes/default-filters.php 325
add_action( 'wp_head', 'wp_print_head_scripts', 9 );
wp-includes/default-filters.php 628
add_action( 'wp_head', 'wp_oembed_add_host_js' );
wp-includes/default-filters.php 323
add_action( 'wp_head', 'print_emoji_detection_script', 7 );
wp-includes/default-filters.php 324
add_action( 'wp_head', 'wp_print_styles', 8 );
wp-includes/default-filters.php 315
add_action( 'wp_head', 'wp_resource_hints', 2 );
wp-includes/default-filters.php 300
add_action( 'wp_head', 'rest_output_link_wp_head', 10, 0 );
wp-includes/default-filters.php 322
add_action( 'wp_head', 'wp_robots', 1 );
wp-includes/default-filters.php 314
add_action( 'wp_head', 'wp_enqueue_scripts', 1 );
wp-includes/default-filters.php 313
add_action( 'wp_head', '_wp_render_title_tag', 1 );
wp-includes/default-filters.php 316
add_action( 'wp_head', 'feed_links', 2 );
wp-includes/default-filters.php 317
add_action( 'wp_head', 'feed_links_extra', 3 );
wp-includes/default-filters.php 318
add_action( 'wp_head', 'rsd_link' );
wp-includes/default-filters.php 319
add_action( 'wp_head', 'wlwmanifest_link' );
wp-includes/default-filters.php 320
add_action( 'wp_head', 'locale_stylesheet' );
wp-includes/deprecated.php 2421
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+.
wp-includes/theme.php 2772
add_action( 'wp_head', $args[0]['wp-head-callback'] );
wp-includes/theme.php 2786
add_action( 'wp_head', $args[0]['wp-head-callback'] );
wp-includes/theme.php 2923
remove_action( 'wp_head', $support[0]['wp-head-callback'] );
wp-includes/theme.php 2937
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 78
add_action( 'wp_head', 'wpmu_signup_stylesheet' );