admin_footer

Prints scripts or data before the default footer scripts.

Description

do_action( 'admin_footer', (string) $var ); 

Parameters (1)

0. $var (string) => ''
The var.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'admin_footer', $var ); 
The following example is for adding a hook callback.
  1. // define the admin_footer callback 
  2. function action_admin_footer( $var ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'admin_footer', 'action_admin_footer', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'admin_footer', 'action_admin_footer', 10, 1 ); 

Defined (3)

The action is defined in the following location(s).

/wp-admin/includes/template.php  
  1. do_action( 'admin_footer', '' ); 
/wp-admin/includes/class-wp-press-this.php  
  1. do_action( 'admin_footer' ); 
/wp-admin/admin-footer.php  
  1. do_action( 'admin_footer', '' );