WP_Style_Engine_CSS_Declarations::add_declarations( string[] $declarations ): WP_Style_Engine_CSS_Declarations

In this article

Adds multiple declarations.

Parameters

$declarationsstring[]required
An array of declarations.

Return

WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.

Source

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

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

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