WP_Style_Engine_CSS_Declarations::remove_declarations()publicWP 6.1.0

Removes multiple declarations.

Method of the class: 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->remove_declarations( $properties );
$properties(string[])
An array of properties.
Default: empty array

Changelog

Since 6.1.0 Introduced.

WP_Style_Engine_CSS_Declarations::remove_declarations() code WP 6.5.2

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