WP_Style_Engine_CSS_Declarations::__construct()publicWP 6.1.0

Constructor for this object.

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

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

Хуков нет.

Возвращает

null. Ничего.

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

$WP_Style_Engine_CSS_Declarations = new WP_Style_Engine_CSS_Declarations();
$WP_Style_Engine_CSS_Declarations->__construct( $declarations );
$declarations(string[])
An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ).
По умолчанию: array()

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

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

Код WP_Style_Engine_CSS_Declarations::__construct() WP 6.1.1

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