Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 5b41e3a

Browse files
authored
Hide the legacy products block from the block inserter (#143)
1 parent aa25bf8 commit 5b41e3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/js/legacy/products-block.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,9 @@ registerBlockType( 'woocommerce/products', {
905905
icon: 'screenoptions',
906906
category: 'woocommerce',
907907
description: __( 'Display a grid of products from a variety of sources.' ),
908+
supports: {
909+
inserter: false,
910+
},
908911

909912
attributes: {
910913

0 commit comments

Comments
 (0)