admin_head хук-событиеWP 2.1.0

Fires in head section for all admin pages.

Использование

add_action( 'admin_head', 'wp_kama_admin_head_action' );

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

	// action...
}

Список изменений

С версии 2.1.0 Введена.

Где вызывается хук

В файле: /wp-admin/admin-header.php
admin_head
wp-admin/admin-header.php 163
do_action( 'admin_head' );
wp-admin/includes/template.php 2106
do_action( 'admin_head' );
wp-admin/includes/media.php 582
do_action( 'admin_head' );

Где используется хук в WordPress

wp-admin/export.php 46
add_action( 'admin_head', 'export_add_js' );
wp-admin/includes/admin-filters.php 42
add_action( 'admin_head', 'wp_color_scheme_settings' );
wp-admin/includes/admin-filters.php 49
add_action( 'admin_head', 'wp_admin_canonical_url' );
wp-admin/includes/admin-filters.php 50
add_action( 'admin_head', 'wp_site_icon' );
wp-admin/includes/admin-filters.php 51
add_action( 'admin_head', 'wp_admin_viewport_meta' );
wp-admin/network/settings.php 44
add_action( 'admin_head', 'network_settings_add_js' );
wp-admin/options-general.php 25
add_action( 'admin_head', 'options_general_add_js' );
wp-admin/options-reading.php 20
add_action( 'admin_head', 'options_reading_add_js' );
wp-admin/upload.php 29
remove_action( 'admin_head', 'wp_admin_canonical_url' );
wp-admin/users.php 314
add_action( 'admin_head', 'delete_users_add_js' );
wp-includes/class-wp-admin-bar.php 62
add_action( 'admin_head', 'wp_admin_bar_header' );
wp-includes/default-filters.php 573
add_action( 'admin_head', 'wp_check_widget_editor_deps' );
wp-includes/general-template.php 4923
add_action( 'admin_head', '_thickbox_path_admin_subfolder' );