customize_controls_print_styles

The WordPress Core customize controls print styles hook.

Description

add_action( 'customize_controls_print_styles', (string) $print_admin_styles, (int) $int ); 

Parameters (2)

0. $print_admin_styles (string) => 'print_admin_styles'
The print admin styles.
1. $int (int) => 20
The int.

Usage

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

Defined (4)

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

/wp-admin/customize.php  
  1. add_action( 'customize_controls_print_styles', 'print_admin_styles', 20 ); 
  1. do_action( 'customize_controls_print_styles' ); 
/wp-includes/class-wp-customize-widgets.php  
  1. add_action( 'customize_controls_print_styles', array( $this, 'print_styles' ) ); 
/wp-includes/customize/class-wp-customize-site-icon-control.php  
  1. add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 );