WP_Style_Engine_CSS_Declarations::remove_declaration()
Removes a single declaration.
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_declaration( $property );
- $property(string) (required)
- The CSS property.
Changelog
Since 6.1.0 | Introduced. |
WP_Style_Engine_CSS_Declarations::remove_declaration() WP Style Engine CSS Declarations::remove declaration code WP 6.6.2
public function remove_declaration( $property ) { unset( $this->declarations[ $property ] ); return $this; }