Created
August 10, 2023 12:55
-
-
Save verygoodplugins/b6fbf7287ffa187039624b6cbe19b526 to your computer and use it in GitHub Desktop.
Prevent the Enhanced Ecommerce addon from syncing free orders to the CRM
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 wpf_dont_sync_free_orders( $order_args ) { | |
if ( empty( $order_args['total'] ) ) { | |
return false; | |
} | |
return $order_args; | |
} | |
add_filter( 'wpf_ecommerce_order_args', 'wpf_dont_sync_free_orders' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment