Automattic\WooCommerce\Blocks\BlockTypes
ProductGalleryLargeImage::enqueue_assets
Enqueue frontend assets for this block, just in time for rendering.
Метод класса: ProductGalleryLargeImage{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->enqueue_assets( $attributes, $content, $block );
- $attributes(массив) (обязательный)
- Any attributes that currently are available from the block.
- $content(строка) (обязательный)
- The block content.
- $block(WP_Block) (обязательный)
- The block object.
Код ProductGalleryLargeImage::enqueue_assets() ProductGalleryLargeImage::enqueue assets WC 9.9.4
protected function enqueue_assets( array $attributes, $content, $block ) { if ( $block->context['hoverZoom'] || $block->context['fullScreenOnClick'] ) { parent::enqueue_assets( $attributes, $content, $block ); } }