Disable Cart, Checkout, All Products & filters blocks from the widgets screen (https://github.com/woocommerce/woocommerce-blocks/pull/4646)
This commit is contained in:
parent
c8ee90c465
commit
912a1704e0
|
@ -134,7 +134,7 @@ final class BlockTypesController {
|
||||||
/**
|
/**
|
||||||
* This disables specific blocks in Widget Areas by not registering them.
|
* This disables specific blocks in Widget Areas by not registering them.
|
||||||
*/
|
*/
|
||||||
if ( in_array( $pagenow, [ 'themes.php', 'customize.php' ], true ) ) {
|
if ( in_array( $pagenow, [ 'widgets.php', 'themes.php', 'customize.php' ], true ) ) {
|
||||||
$block_types = array_diff(
|
$block_types = array_diff(
|
||||||
$block_types,
|
$block_types,
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue