Title: WP_Style_Engine_CSS_Rules_Store::set_name
Published: November 2, 2022
Last modified: April 28, 2025

---

# WP_Style_Engine_CSS_Rules_Store::set_name( string $name )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rules_store/set_name/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rules_store/set_name/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rules_store/set_name/?output_format=md#changelog)

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

Sets the store name.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rules_store/set_name/?output_format=md#parameters)󠁿

 `$name`stringrequired

The store name.

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

    ```php
    public function set_name( $name ) {
    	$this->name = $name;
    }
    ```

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

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

| Version | Description | 
| [6.1.0](https://developer.wordpress.org/reference/since/6.1.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_rules_store%2Fset_name%2F)
before being able to contribute a note or feedback.