WP_Style_Engine_Processor::add_store
Adds a store to the processor.
Метод класса: WP_Style_Engine_Processor{}
Хуков нет.
Возвращает
WP_Style_Engine_Processor. Returns the object to allow chaining methods.
Использование
$WP_Style_Engine_Processor = new WP_Style_Engine_Processor(); $WP_Style_Engine_Processor->add_store( $store );
- $store(WP_Style_Engine_CSS_Rules_Store) (обязательный)
- The store to add.
Список изменений
| С версии 6.1.0 | Введена. |
Код WP_Style_Engine_Processor::add_store() WP Style Engine Processor::add store WP 6.9.4
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;
}