An associative array of CSS definitions, e.g. array( "$property" => "$value", "$property" => "$value" ), or a WP_Style_Engine_CSS_Declarations object.
$rules_groupstringoptional
A parent CSS selector in the case of nested CSS, or a CSS nested @rule, such as @media (min-width: 80rem) or @layer module.Default: ''
wp_style_engine_get_styles()Global public interface method to generate styles from a single style object, e.g. the value of a block's attributes.style object or the top level styles in theme.json.
Signature, return type and hooks compared across 5 parsed releases.
7.1.0
Parameter $css_declarations retyped from string[] to string[]|WP_Style_Engine_CSS_Declarations.verified against source
7.1.0
Extended $css_declarations parameter to accept WP_Style_Engine_CSS_Declarations object.from the docblock
6.6.0
Added the $rules_group parameter.from the docblock
6.1.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/style-engine/class-wp-style-engine.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.