Title: print_admin_styles
Published: April 25, 2014
Last modified: February 24, 2026

---

# print_admin_styles(): string[]

## In this article

 * [Return](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#source)
 * [Hooks](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#hooks)
 * [Related](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#wp--skip-link--target)

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

## 󠀁[Return](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#return)󠁿

 string[] Handles of the styles that were printed.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#source)󠁿

    ```php
    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;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/script-loader.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/script-loader.php#L2323)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/script-loader.php#L2323-L2345)

## 󠀁[Hooks](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#hooks)󠁿

 [apply_filters( ‘print_admin_styles’, bool $print )](https://developer.wordpress.org/reference/hooks/print_admin_styles/)

Filters whether to print the admin styles.

## 󠀁[Related](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_styles()](https://developer.wordpress.org/reference/functions/wp_styles/)`wp-includes/functions.wp-styles.php` |

Initializes $wp_styles if it has not been set.

  | 
| [WP_Styles::reset()](https://developer.wordpress.org/reference/classes/wp_styles/reset/)`wp-includes/class-wp-styles.php` |

Resets class properties.

  | 
| [script_concat_settings()](https://developer.wordpress.org/reference/functions/script_concat_settings/)`wp-includes/script-loader.php` |

Determines the concatenation and compression settings for scripts and styles.

  | 
| [apply_filters()](https://developer.wordpress.org/reference/functions/apply_filters/)`wp-includes/plugin.php` |

Calls the callback functions that have been added to a filter hook.

  |

[Show 1 more](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/print_admin_styles/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fprint_admin_styles%2F)
before being able to contribute a note or feedback.