WP_Style_Engine_CSS_Declarations::add_declarations()publicWP 6.1.0

Adds multiple declarations.

Method of the class: WP_Style_Engine_CSS_Declarations{}

No Hooks.

Return

WP_Style_Engine_CSS_Declarations. Returns the object to allow chaining methods.

Usage

$WP_Style_Engine_CSS_Declarations = new WP_Style_Engine_CSS_Declarations();
$WP_Style_Engine_CSS_Declarations->add_declarations( $declarations );
$declarations(string[]) (required)
An array of declarations.

Changelog

Since 6.1.0 Introduced.

WP_Style_Engine_CSS_Declarations::add_declarations() code WP 6.6.2

public function add_declarations( $declarations ) {
	foreach ( $declarations as $property => $value ) {
		$this->add_declaration( $property, $value );
	}
	return $this;
}