admin_footer-<hook_suffix>
Prints scripts or data after the default footer scripts.
Description
do_action( 'admin_footer-<hook_suffix>' );
The dynamic portion(s) of the hook name refer refers to the global hook suffix of the current page.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_footer-{$hook_suffix}' );
- The following example is for adding a hook callback.
- // define the admin_footer-<hook_suffix> callback
- function action_admin_footer_hook_suffix( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "admin_footer-{$hook_suffix}", 'action_admin_footer_hook_suffix', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "admin_footer-{$hook_suffix}", 'action_admin_footer_hook_suffix', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/admin-footer.php
- do_action( "admin_footer-{$hook_suffix}" );