Automattic\WooCommerce\Blocks\BlockTypes

Cart::register_block_type_assets()protectedWC 1.0

Register script and style assets for the block type before it is registered.

This registers the scripts; it does not enqueue them.

Метод класса: Cart{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->register_block_type_assets();

Код Cart::register_block_type_assets() WC 8.7.0

protected function register_block_type_assets() {
	parent::register_block_type_assets();
	$chunks        = $this->get_chunks_paths( $this->chunks_folder );
	$vendor_chunks = $this->get_chunks_paths( 'vendors--cart-blocks' );
	$shared_chunks = [];
	$this->register_chunk_translations( array_merge( $chunks, $vendor_chunks, $shared_chunks ) );
}