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

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

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

add_action( 'admin_print_scripts-widgets.php', 'wp_kama_admin_print_scripts_widgets.php_action' );

/**
 * Function for `admin_print_scripts-widgets.php` action-hook.
 * 
 * @return void
 */
function wp_kama_admin_print_scripts_widgets.php_action(){

	// action...
}

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

WP_Customize_Widgets::print_scripts()
admin_print_scripts-widgets.php
wp-includes/class-wp-customize-widgets.php 683
do_action( 'admin_print_scripts-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

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

wp-includes/widgets/class-wp-widget-custom-html.php 76
add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );
wp-includes/widgets/class-wp-widget-media.php 112
add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );
wp-includes/widgets/class-wp-widget-text.php 67
add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );