Constructor for this object.
If a $declarations array is passed, it will be used to populate the initial $declarations prop of the object by calling add_declarations().
$declarationsstring[]optional
array( "$property" => "$value", "$property" => "$value" ).Default:array()
public function __construct( $declarations = array() ) {
$this->add_declarations( $declarations );
}
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_style_engine_css_declarations/__construct