WP_Style_Engine_CSS_Declarations::remove_declarations()publicWP 6.1.0

Removes 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->remove_declarations( $properties );
$properties(массив)
An array of properties.
По умолчанию: array()

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

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

Код WP_Style_Engine_CSS_Declarations::remove_declarations() WP 6.1.1

public function remove_declarations( $properties = array() ) {
	foreach ( $properties as $property ) {
		$this->remove_declaration( $property );
	}
	return $this;
}