admin_head

Fires in head section for all admin pages.

Description

add_action( 'admin_head', (string) $monsterinsights_menu_icon_css ); 

Parameters (1)

0. $monsterinsights_menu_icon_css (string) => 'monsterinsights_menu_icon_css'
The monsterinsights menu icon css.

Usage

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

Defined (3)

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

/includes/admin/admin.php  
  1. add_action( 'admin_head', 'monsterinsights_menu_icon_css' ); 
/includes/admin/tracking.php  
  1. add_action( 'admin_head', array( $this, 'check_for_optin' ) ); 
  1. add_action( 'admin_head', array( $this, 'check_for_optout' ) );