admin_print_styles

Fires when styles are printed for all admin pages.

Description

add_action( 'admin_print_styles', (array) $array ); 

Parameters (1)

0. $array (array) => array( Jetpack::init(), 'admin_banner_styles' )
The array.

Usage

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

Defined (6)

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

/class.jetpack-connection-banner.php  
  1. add_action( 'admin_print_styles', array( Jetpack::init(), 'admin_banner_styles' ) ); 
/modules/contact-form/admin.php  
  1. add_action( 'admin_print_styles', 'grunion_admin_css' ); 
/class.jetpack.php  
  1. add_action( 'admin_print_styles', array( $this, 'jetpack_user_col_style' ) ); 
  1. add_action( 'admin_print_styles', array( $this, 'admin_banner_styles' ) ); 
/modules/protect.php  
  1. add_action( 'admin_print_styles', array ( $this, 'admin_banner_styles' ) ); 
/modules/stats.php  
  1. add_action( 'admin_print_styles', 'stats_reports_css' );