On this page
WP_Style_Engine_CSS_Declarations::remove_declarations( array $properties = array() ): WP_Style_Engine_CSS_Declarations
Removes multiple declarations.
Parameters
$propertiesarray Optional-
An array of properties.
Default:
array()
Return
WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.
Source
File: wp-includes/style-engine/class-wp-style-engine-css-declarations.php. View all references
public function remove_declarations( $properties = array() ) {
foreach ( $properties as $property ) {
$this->remove_declaration( $property );
}
return $this;
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Style_Engine_CSS_Declarations::remove_declaration() wp-includes/style-engine/class-wp-style-engine-css-declarations.php | Removes a single declaration. |
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_style_engine_css_declarations/remove_declarations