Title: WP_Style_Engine::get_store
Published: November 2, 2022
Last modified: February 24, 2026

---

# WP_Style_Engine::get_store( string $store_name ): 󠀁[WP_Style_Engine_CSS_Rules_Store](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rules_store/)󠁿|null

## In this article

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

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

Returns a store by store key.

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

 `$store_name`stringrequired

A store key.

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

 [WP_Style_Engine_CSS_Rules_Store](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rules_store/)
|null

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

    ```php
    public static function get_store( $store_name ) {
    	return WP_Style_Engine_CSS_Rules_Store::get_store( $store_name );
    }
    ```

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

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

| Uses | Description | 
| [WP_Style_Engine_CSS_Rules_Store::get_store()](https://developer.wordpress.org/reference/classes/wp_style_engine_css_rules_store/get_store/)`wp-includes/style-engine/class-wp-style-engine-css-rules-store.php` |

Gets an instance of the store.

  |

| Used by | Description | 
| [wp_style_engine_get_stylesheet_from_context()](https://developer.wordpress.org/reference/functions/wp_style_engine_get_stylesheet_from_context/)`wp-includes/style-engine.php` |

Returns compiled CSS from a store, if found.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_style_engine/get_store/?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%2Fget_store%2F)
before being able to contribute a note or feedback.