WP_Style_Engine_CSS_Rule::__construct()publicWP 6.1.0

Constructor

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

Хуков нет.

Возвращает

null. Ничего.

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

$WP_Style_Engine_CSS_Rule = new WP_Style_Engine_CSS_Rule();
$WP_Style_Engine_CSS_Rule->__construct( $selector, $declarations );
$selector(строка)
The CSS selector.
По умолчанию: ''
$declarations(string[]|WP_Style_Engine_CSS_Declarations)
An associative array of CSS definitions, e.g., array( "$property" => "$value", "$property" => "$value" ), or a WP_Style_Engine_CSS_Declarations object.
По умолчанию: array()

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

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

Код WP_Style_Engine_CSS_Rule::__construct() WP 6.1.1

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