admin_footer-(hook_suffix) хук-событиеWP 2.8.0

Prints scripts or data after the default footer scripts.

The dynamic portion of the hook name, $hook_suffix, refers to the global hook suffix of the current page.

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

add_action( 'admin_footer-(hook_suffix)', 'wp_kama_admin_footer_hook_suffix_action' );

/**
 * Function for `admin_footer-(hook_suffix)` action-hook.
 * 
 * @return void
 */
function wp_kama_admin_footer_hook_suffix_action(){

	// action...
}

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

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

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

В файле: /wp-admin/admin-footer.php
admin_footer-(hook_suffix)
wp-admin/admin-footer.php 105
do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

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

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