Skip to content

Commit 9dd9e3e

Browse files
committed
Remove woocommerce_payment_complete, woocommerce_order_status_processing and woocommerce_order_status_completed hooks from firing Purchase event
1 parent 66f1466 commit 9dd9e3e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

facebook-commerce-events-tracker.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ private function add_hooks() {
156156
add_action( 'woocommerce_process_shop_order_meta', array( $this, 'inject_purchase_event' ), 20 );
157157
add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'inject_purchase_event' ), 30 );
158158
add_action( 'woocommerce_thankyou', array( $this, 'inject_purchase_event' ), 40 );
159-
add_action( 'woocommerce_payment_complete', array( $this, 'inject_purchase_event' ), 50 );
160-
add_action( 'woocommerce_order_status_processing', array( $this, 'inject_purchase_event' ), 60 );
161-
add_action( 'woocommerce_order_status_completed', array( $this, 'inject_purchase_event' ), 70 );
162159

163160
// Lead events through Contact Form 7
164161
add_action( 'wpcf7_contact_form', array( $this, 'inject_lead_event_hook' ), 11 );

0 commit comments

Comments
 (0)