Automattic\WooCommerce\Blocks\BlockTypes
AbstractBlock::enqueue_assets() protected WC 1.0
Enqueue frontend assets for this block, just in time for rendering.
{} Это метод класса: AbstractBlock{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->enqueue_assets( $attributes );
- $attributes(массив) (обязательный)
- Any attributes that currently are available from the block.
Код AbstractBlock::enqueue_assets() AbstractBlock::enqueue assets WC 5.2.0
protected function enqueue_assets( array $attributes ) {
if ( $this->enqueued_assets ) {
return;
}
$this->enqueue_data( $attributes );
$this->enqueue_scripts( $attributes );
$this->enqueued_assets = true;
}