WP_Style_Engine_CSS_Rules_Store::remove_rule
Removes a selector from the store.
Method of the class: WP_Style_Engine_CSS_Rules_Store{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$WP_Style_Engine_CSS_Rules_Store = new WP_Style_Engine_CSS_Rules_Store(); $WP_Style_Engine_CSS_Rules_Store->remove_rule( $selector );
- $selector(string) (required)
- The CSS selector.
Changelog
Since 6.1.0 | Introduced. |
WP_Style_Engine_CSS_Rules_Store::remove_rule() WP Style Engine CSS Rules Store::remove rule code WP 6.8.1
public function remove_rule( $selector ) { unset( $this->rules[ $selector ] ); }