WP_Style_Engine_Processor::add_store( WP_Style_Engine_CSS_Rules_Store $store ): WP_Style_Engine_Processor

In this article

Adds a store to the processor.

Parameters

$storeWP_Style_Engine_CSS_Rules_Storerequired
The store to add.

Return

WP_Style_Engine_Processor Returns the object to allow chaining methods.

Source

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

VersionDescription
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.