Title: WP_Style_Engine_CSS_Rule::get_rules_group
Published: July 16, 2024
Last modified: April 28, 2025

---

# WP_Style_Engine_CSS_Rule::get_rules_group(): string

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#wp--skip-link--target)

Gets the rules group.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#return)󠁿

 string

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#source)󠁿

    ```php
    public function get_rules_group() {
    	return $this->rules_group;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/style-engine/class-wp-style-engine-css-rule.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/style-engine/class-wp-style-engine-css-rule.php#L126)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/style-engine/class-wp-style-engine-css-rule.php#L126-L128)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Style_Engine_CSS_Rule::get_css()](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_css/)`wp-includes/style-engine/class-wp-style-engine-css-rule.php` |

Gets the CSS.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/get_rules_group/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.6.0](https://developer.wordpress.org/reference/since/6.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_style_engine_css_rule%2Fget_rules_group%2F)
before being able to contribute a note or feedback.