WP_Style_Engine_CSS_Rule::set_rules_grouppublicWP 6.6.0

Sets the rules group.

Method of the class: WP_Style_Engine_CSS_Rule{}

No Hooks.

Returns

WP_Style_Engine_CSS_Rule. Returns the object to allow chaining of methods.

Usage

$WP_Style_Engine_CSS_Rule = new WP_Style_Engine_CSS_Rule();
$WP_Style_Engine_CSS_Rule->set_rules_group( $rules_group );
$rules_group(string) (required)
A parent CSS selector in the case of nested CSS, or a CSS nested @rule, such as @media (min-width: 80rem) or @layer module.

Changelog

Since 6.6.0 Introduced.

WP_Style_Engine_CSS_Rule::set_rules_group() code WP 6.8.1

public function set_rules_group( $rules_group ) {
	$this->rules_group = $rules_group;
	return $this;
}