admin_head-(hook_suffix)
Fires in head section for a specific 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
admin_head-(hook_suffix)
wp-includes/build/pages/options-connectors/page.php 260
do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/build/pages/font-library/page.php 260
do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/admin-header.php 161
do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/includes/template.php 2174
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 93
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' ) );