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.
Return
null
. Nothing (null).
Usage
$AbstractBlock = new AbstractBlock(); $AbstractBlock->enqueue_editor_assets();
AbstractBlock::enqueue_editor_assets() AbstractBlock::enqueue editor assets code WC 9.4.2
public function enqueue_editor_assets() { if ( $this->enqueued_assets ) { return; } $this->enqueue_data(); }