Constructor.
Parameters
$selector
stringoptional- The CSS selector.
Default:
''
$declarations
string[]|WP_Style_Engine_CSS_Declarationsoptional- An associative array of CSS definitions, e.g.
array( "$property" => "$value", "$property" => "$value" )
, or a WP_Style_Engine_CSS_Declarations object.
Default:
array()
Source
public function __construct( $selector = '', $declarations = array() ) {
$this->set_selector( $selector );
$this->add_declarations( $declarations );
}
Changelog
Version | Description |
---|---|
6.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.