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

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

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

add_action( 'admin_footer-widgets.php', 'wp_kama_admin_footer_widgets.php_action' );

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

	// action...
}

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

WP_Customize_Widgets::print_footer_scripts()
admin_footer-widgets.php
wp-includes/class-wp-customize-widgets.php 939
do_action( 'admin_footer-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

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

wp-includes/widgets/class-wp-widget-custom-html.php 80
add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Custom_HTML', 'render_control_template_scripts' ) );
wp-includes/widgets/class-wp-widget-media.php 120
add_action( 'admin_footer-widgets.php', array( $this, 'render_control_template_scripts' ) );
wp-includes/widgets/class-wp-widget-text.php 71
add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Text', 'render_control_template_scripts' ) );