admin_print_scripts хук-событиеWP 1.0

This action is documented in wp-admin/admin-header.php

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

add_action( 'admin_print_scripts', 'wp_kama_admin_print_scripts_action' );
function wp_kama_admin_print_scripts_action(){
	// action...
}

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

WP_Customize_Widgets::print_scripts()
admin_print_scripts
iframe_header()
admin_print_scripts
wp_iframe()
admin_print_scripts
wp-includes/class-wp-customize-widgets.php 685
do_action( 'admin_print_scripts' );
wp-admin/admin-header.php 146
do_action( 'admin_print_scripts' );
wp-admin/includes/template.php 2058
do_action( 'admin_print_scripts' );
wp-admin/includes/media.php 562
do_action( 'admin_print_scripts' );

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

wp-admin/edit-form-blocks.php 46
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
wp-includes/default-filters.php 393
add_action( 'admin_print_scripts', 'print_emoji_detection_script' );
wp-includes/default-filters.php 394
add_action( 'admin_print_scripts', 'print_head_scripts', 20 );