admin_head-<hook_suffix>
Fires in head section for a specific admin page.
Description
do_action( 'admin_head-<hook_suffix>' );
The dynamic portion(s) of the hook refer to the hook suffix for the admin page.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_head-{$hook_suffix}' );
- The following example is for adding a hook callback.
- // define the admin_head-<hook_suffix> callback
- function action_admin_head_hook_suffix( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "admin_head-{$hook_suffix}", 'action_admin_head_hook_suffix', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "admin_head-{$hook_suffix}", 'action_admin_head_hook_suffix', 10, 0 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/admin-header.php
- do_action( "admin_head-{$hook_suffix}" );
- /wp-admin/includes/template.php
- do_action( "admin_head-$hook_suffix" );