WP_Style_Engine_CSS_Rules_Store::remove_rulepublicWP 6.1.0

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() code WP 6.8.1

public function remove_rule( $selector ) {
	unset( $this->rules[ $selector ] );
}