'woocommerce-products-block-editor', 'editor_style' => 'woocommerce-products-block-editor', ) ); } /** * Register extra scripts needed. */ function wgpb_extra_gutenberg_scripts() { wp_enqueue_script( 'react-transition-group', plugins_url( 'assets/js/vendor/react-transition-group.js', __FILE__ ), array( 'wp-blocks', 'wp-element' ), '2.2.1' ); } add_action( 'enqueue_block_assets', 'wgpb_extra_gutenberg_scripts' );