On this page
WP_Style_Engine_Processor::add_store( WP_Style_Engine_CSS_Rules_Store $store ): WP_Style_Engine_Processor
Adds a store to the processor.
Parameters
$storeWP_Style_Engine_CSS_Rules_Store Required-
The store to add.
Return
WP_Style_Engine_Processor Returns the object to allow chaining methods.
Source
File: wp-includes/style-engine/class-wp-style-engine-processor.php. View all references
public function add_store( $store ) {
if ( ! $store instanceof WP_Style_Engine_CSS_Rules_Store ) {
_doing_it_wrong(
__METHOD__,
__( '$store must be an instance of WP_Style_Engine_CSS_Rules_Store' ),
'6.1.0'
);
return $this;
}
$this->stores[ $store->get_name() ] = $store;
return $this;
}
Related
Uses
| Uses | Description |
|---|---|
| __() wp-includes/l10n.php | Retrieves the translation of $text. |
| _doing_it_wrong() wp-includes/functions.php | Marks something as being incorrectly called. |
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_style_engine_processor/add_store