WP_Style_Engine_CSS_Declarations::__construct( string[] $declarations = array() )

In this article

Constructor for this object.

Description

If a $declarations array is passed, it will be used to populate the initial $declarations prop of the object by calling add_declarations().

Parameters

$declarationsstring[]optional
An associative array of CSS definitions, e.g. array( "$property" => "$value", "$property" => "$value" ).

Default:array()

Source

public function __construct( $declarations = array() ) {
	$this->add_declarations( $declarations );
}

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.