admin_footer-(hook_suffix) action-hookWP 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.

Usage

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...
}

Changelog

Since 2.8.0 Introduced.

Where the hook is called

In file: /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

Where the hook is used in 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' ) );