W3cubDocs

/WordPress

WP_Style_Engine_CSS_Declarations::remove_declarations( string[] $properties = array() ): WP_Style_Engine_CSS_Declarations

Removes multiple declarations.

Parameters

$propertiesstring[]optional
An array of properties.

Default:array()

Return

WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.

Source

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

Changelog

Version Description
6.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_style_engine_css_declarations/remove_declarations