W3cubDocs

/WordPress

WP_Style_Engine_CSS_Rule::set_rules_group( string $rules_group ): WP_Style_Engine_CSS_Rule

Sets the rules group.

Parameters

$rules_groupstringrequired
A parent CSS selector in the case of nested CSS, or a CSS nested @rule, such as @media (min-width: 80rem) or @layer module.

Return

WP_Style_Engine_CSS_Rule Returns the object to allow chaining of methods.

Source

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

Changelog

Version Description
6.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/set_rules_group