Automattic\WooCommerce\Blocks\BlockTypes
AbstractBlock::enqueue_editor_assets
Enqueue assets used for rendering the block in editor context.
This is needed if a block is not yet within the post content--render and enqueue_assets may not have ran.
Метод класса: AbstractBlock{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$AbstractBlock = new AbstractBlock(); $AbstractBlock->enqueue_editor_assets();
Код AbstractBlock::enqueue_editor_assets() AbstractBlock::enqueue editor assets WC 10.7.0
public function enqueue_editor_assets() {
if ( $this->enqueued_assets ) {
return;
}
$this->register_block_type_assets();
$this->enqueue_data();
}