WP_Style_Engine_CSS_Declarations::remove_declarations
Removes multiple declarations.
Method of the class: WP_Style_Engine_CSS_Declarations{}
No Hooks.
Returns
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() WP Style Engine CSS Declarations::remove declarations code WP 7.0
public function remove_declarations( $properties = array() ) {
foreach ( $properties as $property ) {
$this->remove_declaration( $property );
}
return $this;
}