print_admin_styles(): string[]
- Since
- 2.8.0
- Source
wp-includes/script-loader.php:2323
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:
- apply_filters( print_admin_styles )filterline 2339 (+16 into the body)
Filters whether to print the admin styles.
Uses · 4
- wp_styles()Initializes $wp_styles if it has not been set.
- script_concat_settings()Determines the concatenation and compression settings for scripts and styles.
- apply_filters()Calls the callback functions that have been added to a filter hook.
- _print_styles()Prints styles (internal use only).
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.
Signature, return type and hooks compared across 5 parsed releases.
6.8.8
Return type changed from
array to string[].verified against source2.8.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 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.