WP_Style_Engine_Processor::add_store( WP_Style_Engine_CSS_Rules_Store $store ): WP_Style_Engine_Processor
Adds a store to the processor.
Parameters
-
$store
WP_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;
}
Changelog
Version | Description |
---|---|
6.1.0 | Introduced. |