Skip to content

Commit

Permalink
Some more small refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Aug 12, 2022
1 parent d48d81a commit 29df37c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/BlockTypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,14 @@ public function add_data_attributes( $content, $block ) {
return $content;
}

if ( 'woocommerce/all-products' === $block_name ) {
return $content;
}

if ( 'woocommerce/cart-order-summary-coupon-form-block' === $block_name ) {
if ( in_array(
$block_name,
array(
'woocommerce/all-products',
'woocommerce/cart-order-summary-coupon-form-block',
),
true
) ) {
return $content;
}

Expand Down

0 comments on commit 29df37c

Please sign in to comment.