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

---

# apply_filters( ‘print_styles_array’, string[] $to_do )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/print_styles_array/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/print_styles_array/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/print_styles_array/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/print_styles_array/?output_format=md#changelog)

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

Filters the array of enqueued styles before processing for output.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/print_styles_array/?output_format=md#parameters)󠁿

 `$to_do`string[]

The list of enqueued style handles about to be processed.

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

    ```php
    $this->to_do = apply_filters( 'print_styles_array', $this->to_do );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes_class-wp-styles-php-2/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-styles.php#L412)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-styles.php#L412-L412)

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

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

Determines style dependencies.

  |

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

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

## User Contributed Notes

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