customize_controls_print_styles

The WordPress Core customize controls print styles hook.

Description

add_filter( 'customize_controls_print_styles', (string) $wp_resource_hints, (int) $int ); 

Parameters (2)

0. $wp_resource_hints (string) => 'wp_resource_hints'
The wp resource hints.
1. $int (int) => 1
The int.

Usage

To run the hook, copy the example below.
  1. $wp_resource_hints = apply_filters( 'customize_controls_print_styles', $wp_resource_hints, $int ); 
  2.  
  3. if ( !empty( $wp_resource_hints ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the customize_controls_print_styles callback 
  2. function filter_customize_controls_print_styles( $wp_resource_hints, $int ) { 
  3. // make filter magic happen here... 
  4. return $wp_resource_hints
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'customize_controls_print_styles', 'filter_customize_controls_print_styles', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'customize_controls_print_styles', 'filter_customize_controls_print_styles', 10, 2 ); 

Defined (1)

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

/wp-includes/default-filters.php  
  1. add_filter( 'customize_controls_print_styles', 'wp_resource_hints', 1 );