admin_footer-{$hook_suffix}
Action HookDescription
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.Hook Information
File Location |
wp-admin/admin-footer.php
View on GitHub
|
Hook Type | Action |
Line Number | 105 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into admin_footer-{$hook_suffix}
add_action('admin_footer-{$hook_suffix}', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/admin-footer.php:105
- How this hook is used in WordPress core
<?php
100 * The dynamic portion of the hook name, `$hook_suffix`,
101 * refers to the global hook suffix of the current page.
102 *
103 * @since 2.8.0
104 */
105 do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
106
107 // get_site_option() won't exist when auto upgrading from <= 2.7.
108 if ( function_exists( 'get_site_option' )
109 && false === get_site_option( 'can_compress_scripts' )
110 ) {
PHP Documentation
<?php
/**
* 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.
*
* @since 2.8.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/admin-footer.php
Related Hooks
Related hooks will be displayed here in future updates.