admin_head-<page>
The WordPress Core admin head page hook.
Description
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.
- // run the action
- do_action( 'admin_head-{$page}', $this_admin_header_callback, $int );
- The following example is for adding a hook callback.
- // define the admin_head-<page> callback
- function action_admin_head_page( $this_admin_header_callback, $int ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "admin_head-{$page}", 'action_admin_head_page', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- add_action( "admin_head-$page", $this->admin_header_callback, 51 );
- /wp-admin/custom-header.php
- add_action( "admin_head-$page", array( $this, 'help' ) );
- add_action( "admin_head-$page", array( $this, 'take_action' ), 50 );
- add_action( "admin_head-$page", array( $this, 'js' ), 50 );
- add_action( "admin_head-$page", $this->admin_header_callback, 51 );