enqueue_block_editor_assets action-hookWC 7.1.0

This is a WordPress - enqueue_block_editor_assets hook. The plugin just uses it.

Enqueue any block editor related assets.

Usage

add_action( 'enqueue_block_editor_assets', 'wp_kama_enqueue_block_editor_assets_action' );

/**
 * Function for `enqueue_block_editor_assets` action-hook.
 * 
 * @return void
 */
function wp_kama_enqueue_block_editor_assets_action(){

	// action...
}

Changelog

Since 7.1.0 Introduced.

Where the hook is called

NewProductManagementExperience::enqueue_styles()
enqueue_block_editor_assets
Init::enqueue_styles()
enqueue_block_editor_assets
CustomizeStore::possibly_add_site_editor_scripts()
enqueue_block_editor_assets
woocommerce/src/Admin/Features/ProductBlockEditor/Init.php 138
do_action( 'enqueue_block_editor_assets' );

Where the hook is used in WooCommerce

woocommerce/includes/admin/class-wc-admin-assets.php 31
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
woocommerce/src/Blocks/AssetsController.php 36
add_action( 'enqueue_block_editor_assets', array( $this, 'register_and_enqueue_site_editor_assets' ) );
woocommerce/src/Blocks/BlockTypes/AbstractBlock.php 126
add_action( 'enqueue_block_editor_assets', [ $this, 'enqueue_editor_assets' ] );