admin_head-<page>

The WordPress Core admin head page hook.

Description

add_action( 'admin_head-<page>', (unknown) $this_admin_header_callback, (int) $int ); 

Parameters (2)

0. $this_admin_header_callback (unknown)
The this admin header callback.
1. $int (int) => 51
The int.

Usage

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

Defined (5)

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

/wp-admin/custom-background.php  
  1. add_action( "admin_head-$page", $this->admin_header_callback, 51 ); 
/wp-admin/custom-header.php  
  1. add_action( "admin_head-$page", array( $this, 'help' ) ); 
  1. add_action( "admin_head-$page", array( $this, 'take_action' ), 50 ); 
  1. add_action( "admin_head-$page", array( $this, 'js' ), 50 ); 
  1. add_action( "admin_head-$page", $this->admin_header_callback, 51 );