Skip to content

Commit

Permalink
prevent PHP notice for access directly to product_type property
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezbrito committed Dec 16, 2024
1 parent 4f19bb9 commit 70cb22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Listeners/Commerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function ecomdash_connected( $new_option, $old_option ) {
public function product_created_or_updated( $product_id, $product ) {
$data = array(
'label_key' => 'product_type',
'product_type' => $product->product_type,
'product_type' => $product->get_type(),
'post_id' => $product_id,
);

Expand Down

0 comments on commit 70cb22d

Please sign in to comment.