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.
Method of the class: AbstractBlock{}
No Hooks.
Returns
null. Nothing (null).
Usage
$AbstractBlock = new AbstractBlock(); $AbstractBlock->enqueue_editor_assets();
AbstractBlock::enqueue_editor_assets() AbstractBlock::enqueue editor assets code WC 11.0.1
public function enqueue_editor_assets() {
if ( $this->enqueued_assets ) {
return;
}
$this->register_block_type_assets();
$this->enqueue_data();
}