wp_head

The WordPress Core wp head hook.

Description

add_action( 'wp_head', (string) $wp_no_robots ); 

Parameters (1)

0. $wp_no_robots (string) => 'wp_no_robots'
The wp no robots.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wp_head', $wp_no_robots ); 
The following example is for adding a hook callback.
  1. // define the wp_head callback 
  2. function action_wp_head( $wp_no_robots ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wp_head', 'action_wp_head', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wp_head', 'action_wp_head', 10, 1 ); 

Defined (37)

The action is defined in the following location(s).

/wp-signup.php  
  1. add_action( 'wp_head', 'wp_no_robots' ); 
  1. add_action( 'wp_head', 'do_signup_header' ); 
  1. add_action( 'wp_head', 'wpmu_signup_stylesheet' ); 
/wp-includes/widgets/class-wp-widget-recent-comments.php  
  1. add_action( 'wp_head', array( $this, 'recent_comments_style' ) ); 
/wp-includes/theme.php  
  1. add_action( 'wp_head', $args[0]['wp-head-callback'] ); 
  1. add_action( 'wp_head', $args[0]['wp-head-callback'] ); 
/wp-includes/default-filters.php  
  1. add_action( 'wp_head', 'rest_output_link_wp_head', 10, 0 ); 
  1. add_action( 'wp_head', '_wp_render_title_tag', 1 ); 
  1. add_action( 'wp_head', 'wp_enqueue_scripts', 1 ); 
  1. add_action( 'wp_head', 'wp_resource_hints', 2 ); 
  1. add_action( 'wp_head', 'feed_links', 2 ); 
  1. add_action( 'wp_head', 'feed_links_extra', 3 ); 
  1. add_action( 'wp_head', 'rsd_link' ); 
  1. add_action( 'wp_head', 'wlwmanifest_link' ); 
  1. add_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); 
  1. add_action( 'wp_head', 'locale_stylesheet' ); 
  1. add_action( 'wp_head', 'noindex', 1 ); 
  1. add_action( 'wp_head', 'print_emoji_detection_script', 7 ); 
  1. add_action( 'wp_head', 'wp_print_styles', 8 ); 
  1. add_action( 'wp_head', 'wp_print_head_scripts', 9 ); 
  1. add_action( 'wp_head', 'wp_generator' ); 
  1. add_action( 'wp_head', 'rel_canonical' ); 
  1. add_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); 
  1. add_action( 'wp_head', 'wp_custom_css_cb', 101 ); 
  1. add_action( 'wp_head', 'wp_site_icon', 99 ); 
  1. add_action( 'wp_head', 'wp_no_robots' ); 
  1. add_action( 'wp_head', 'wp_post_preview_js', 1 ); 
  1. add_action( 'wp_head', '_custom_logo_header_styles' ); 
  1. add_action( 'wp_head', 'wp_oembed_add_discovery_links' ); 
  1. add_action( 'wp_head', 'wp_oembed_add_host_js' ); 
/wp-includes/class-wp-customize-manager.php  
  1. add_action( 'wp_head', 'wp_no_robots' ); 
  1. add_action( 'wp_head', array( $this, 'customize_preview_loading_style' ) ); 
  1. add_action( 'wp_head', array( $this, 'remove_frameless_preview_messenger_channel' ) ); 
/wp-includes/class-wp-admin-bar.php  
  1. add_action( 'wp_head', 'wp_admin_bar_header' ); 
  1. add_action('wp_head', $header_callback); 
/wp-activate.php  
  1. add_action( 'wp_head', 'do_activate_header' ); 
  1. add_action( 'wp_head', 'wpmu_activate_stylesheet' );