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