Uses
| Uses | Description |
|---|---|
| wp-includes/functions.wp-styles.php: wp_styles() | Initialize $wp_styles if it has not been set. |
Check whether a CSS stylesheet has been added to the queue.
(string) (Required) Name of the stylesheet.
(string) (Optional) Status of the stylesheet to check. Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
Default value: 'enqueued'
(bool) Whether style is queued.
File: wp-includes/functions.wp-styles.php
function wp_style_is( $handle, $list = 'enqueued' ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
return (bool) wp_styles()->query( $handle, $list );
} | Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_style_is