WP_Style_Engine_CSS_Declarations::add_declarations()publicWP 6.1.0

Adds multiple declarations.

Метод класса: 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(array) (required)
An array of declarations.

Changelog

Since 6.1.0 Introduced.

Code of WP_Style_Engine_CSS_Declarations::add_declarations() WP 6.1.1

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