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

Commit

Permalink
Block Widgets: hide All Products and Filter blocks in the Customizer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
frontdevde authored and grogou committed Aug 20, 2021
1 parent 208b212 commit 47556b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlockTypesController.php
Expand Up @@ -119,7 +119,7 @@ protected function get_block_types() {
/**
* This disables specific blocks in Widget Areas by not registering them.
*/
if ( 'themes.php' === $pagenow ) {
if ( in_array( $pagenow, [ 'themes.php', 'customize.php' ], true ) ) {
$block_types = array_diff(
$block_types,
[
Expand Down

0 comments on commit 47556b9

Please sign in to comment.