Core Function
View Source on Trac ↗ wp_style_engine_get_stylesheet_from_css_rules()
wp_style_engine_get_stylesheet_from_css_rules( mixed $css_rules, mixed $options = array() ) Returns compiled CSS from a collection of selectors and declarations.
Parameters 2 required
| Name / Type | Description |
|---|---|
| array | $css_rules { Required. A collection of CSS rules. Required |
| array | $options { Optional. An array of options. Default empty array. Required |
Return Value
(string)
A string of compiled CSS declarations, or empty string.
Function Information
Since Version
6.1.0
Source File
wp-includes/style-engine.php
Advertisement