admin_print_styles
Fires when styles are printed for all admin pages.
Использование
add_action( 'admin_print_styles', 'wp_kama_admin_print_styles_action' ); /** * Function for `admin_print_styles` action-hook. * * @return void */ function wp_kama_admin_print_styles_action(){ // action... }
Список изменений
С версии 2.6.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/admin-header.php
admin_print_styles
wp-admin/admin-header.php 132
do_action( 'admin_print_styles' );
wp-includes/class-wp-customize-widgets.php 673
do_action( 'admin_print_styles' );
wp-admin/includes/template.php 2162
do_action( 'admin_print_styles' );
wp-admin/includes/media.php 570
do_action( 'admin_print_styles' );
Где используется хук в WordPress
wp-admin/includes/admin-filters.php 174
add_action( 'admin_print_styles', 'wp_print_font_faces', 50 );
wp-admin/includes/admin-filters.php 57
add_filter( 'admin_print_styles', 'wp_resource_hints', 1 );
wp-admin/includes/admin-filters.php 64
add_action( 'admin_print_styles', 'print_emoji_styles' ); // Retained for backwards-compatibility. Unhooked by wp_enqueue_emoji_styles().
wp-admin/includes/admin-filters.php 65
add_action( 'admin_print_styles', 'print_admin_styles', 20 );