Automattic\WooCommerce\Blocks\BlockTypes
PriceFilter::enqueue_scripts() protected WC 1.0
Register/enqueue scripts used for this block.
{} Это метод класса: PriceFilter{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->enqueue_scripts( $attributes );
- $attributes(массив)
- Any attributes that currently are available from the block.
Код PriceFilter::enqueue_scripts() PriceFilter::enqueue scripts WC 5.1.0
protected function enqueue_scripts( array $attributes = [] ) {
Assets::register_block_script( $this->block_name . '-frontend' );
}