admin_head-(hook_suffix) action-hookWP 2.1.0

Fires in head section for a specific admin page.

The dynamic portion of the hook name, $hook_suffix, refers to the hook suffix for the admin page.

Usage

add_action( 'admin_head-(hook_suffix)', 'wp_kama_admin_head_hook_suffix_action' );

/**
 * Function for `admin_head-(hook_suffix)` action-hook.
 * 
 * @return void
 */
function wp_kama_admin_head_hook_suffix_action(){

	// action...
}

Changelog

Since 2.1.0 Introduced.

Where the hook is called

In file: /wp-admin/admin-header.php
admin_head-(hook_suffix)
wp-admin/admin-header.php 156
do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/includes/template.php 2171
do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

Where the hook is used in WordPress

wp-admin/includes/admin-filters.php 94
add_action( 'admin_head-nav-menus.php', '_wp_delete_orphaned_draft_menu_items' );
wp-admin/includes/class-custom-background.php 86
add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
wp-admin/includes/class-custom-image-header.php 90
add_action( "admin_head-{$page}", array( $this, 'help' ) );
wp-admin/includes/class-custom-image-header.php 91
add_action( "admin_head-{$page}", array( $this, 'take_action' ), 50 );
wp-admin/includes/class-custom-image-header.php 92
add_action( "admin_head-{$page}", array( $this, 'js' ), 50 );
wp-admin/includes/class-custom-image-header.php 95
add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
wp-includes/widgets/class-wp-widget-custom-html.php 85
add_action( 'admin_head-widgets.php', array( 'WP_Widget_Custom_HTML', 'add_help_text' ) );