print_admin_styles

Prints the styles queue in the HTML head on admin pages.

Description

(array) print_admin_styles(); 

Returns (array)


Usage

  1. if ( !function_exists( 'print_admin_styles' ) ) { 
  2. require_once ABSPATH . WPINC . '/script-loader.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = print_admin_styles(); 
  7.  

Defined (1)

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

/wp-includes/script-loader.php  
  1. function print_admin_styles() { 
  2. global $concatenate_scripts; 
  3.  
  4. $wp_styles =wp_styles); 
  5.  
  6. $wp_styles->do_concat = $concatenate_scripts; 
  7. $wp_styles->do_items(false); 
  8.  
  9. /** 
  10. * Filters whether to print the admin styles. 
  11. * @since 2.8.0 
  12. * @param bool $print Whether to print the admin styles. Default true. 
  13. */ 
  14. if ( apply_filters( 'print_admin_styles', true ) ) { 
  15.  
  16. $wp_styles->reset(); 
  17. return $wp_styles->done;