Automattic\WooCommerce\Blocks\BlockTypes
AbstractBlock::enqueue_editor_assets() public WC 1.0
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.
{} It's a method of the class: AbstractBlock{}
No Hooks.
Return
Null. Nothing.
Usage
$AbstractBlock = new AbstractBlock(); $AbstractBlock->enqueue_editor_assets();
Code of AbstractBlock::enqueue_editor_assets() AbstractBlock::enqueue editor assets WC 5.0.0
public function enqueue_editor_assets() {
if ( $this->enqueued_assets ) {
return;
}
$this->enqueue_data();
}