Skip to content

Commit

Permalink
Check whether price label is enabled or not before executing in block…
Browse files Browse the repository at this point in the history
… context.
  • Loading branch information
dennisnissle committed Nov 12, 2024
1 parent ae0c326 commit 095b81c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Blocks/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ function ( $item_data, $item ) {
$label_item_data = array();

foreach ( $labels as $label ) {
if ( ! $label->is_enabled() ) {
continue;
}

$callback = $label->get_callback();
$arg_count = $label->get_number_of_params();

Expand Down

0 comments on commit 095b81c

Please sign in to comment.