WP_Style_Engine_CSS_Declarations::add_declarations()publicWP 6.1.0

Adds multiple declarations.

Метод класса: WP_Style_Engine_CSS_Declarations{}

Хуков нет.

Возвращает

WP_Style_Engine_CSS_Declarations. Returns the object to allow chaining methods.

Использование

$WP_Style_Engine_CSS_Declarations = new WP_Style_Engine_CSS_Declarations();
$WP_Style_Engine_CSS_Declarations->add_declarations( $declarations );
$declarations(массив) (обязательный)
An array of declarations.

Список изменений

С версии 6.1.0 Введена.

Код 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;
}