Created
April 21, 2022 16:41
-
-
Save dpaternina9/b9ad0e20ceac48d42725f6bfc19140fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function monsterinsights_skip_woo_manual_orders( $skip, $order_id ) { | |
$order = wc_get_order( $order_id ); | |
if ( $order && $order->is_created_via('admin') ) { | |
return true; | |
} | |
return $skip; | |
} | |
add_action('monsterinsights_ecommerce_do_transaction_skip_ga', 'monsterinsights_skip_woo_manual_orders', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment