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

Commit 58f96d6

Browse files
authored
Disable Cart, Checkout, All Products & filters blocks from the widgets screen (#4646)
1 parent 33f7ebd commit 58f96d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BlockTypesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected function get_block_types() {
134134
/**
135135
* This disables specific blocks in Widget Areas by not registering them.
136136
*/
137-
if ( in_array( $pagenow, [ 'themes.php', 'customize.php' ], true ) ) {
137+
if ( in_array( $pagenow, [ 'widgets.php', 'themes.php', 'customize.php' ], true ) ) {
138138
$block_types = array_diff(
139139
$block_types,
140140
[

0 commit comments

Comments
 (0)