wppaste
WordPress

print_admin_styles(): string[]

Since
2.8.0
Source
wp-includes/script-loader.php:2341
Prints the styles queue in the HTML head on admin pages.

Return

string[]
Handles of the styles that were printed.

Hooks fired · 1

One hook fires while print_admin_styles() runs, in this order:

  1. apply_filters( print_admin_styles )filterline 2357 (+16 into the body)

    Filters whether to print the admin styles.

Uses · 4

Used by · 2

Source

function print_admin_styles() {	global $concatenate_scripts; 	$wp_styles = wp_styles(); 	script_concat_settings();	$wp_styles->do_concat = $concatenate_scripts;	$wp_styles->do_items( false ); 	/**	 * Filters whether to print the admin styles.	 *	 * @since 2.8.0	 *	 * @param bool $print Whether to print the admin styles. Default true.	 */	if ( apply_filters( 'print_admin_styles', true ) ) {		_print_styles();	} 	$wp_styles->reset();	return $wp_styles->done;}

History

Introduced in 2.8.0. One change between 6.7.7 and 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

6.8.8
Return type changed from array to string[].verified against source
2.8.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/script-loader.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.