Created
September 5, 2017 10:44
-
-
Save danielbitzer/2cdba6cc95dc096c3102d14085233d10 to your computer and use it in GitHub Desktop.
Refer A Friend - Exclude sale items from referral discounts
This file contains hidden or 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 | |
add_filter('automatewoo/referrals/coupon_data', 'my_automatewoo_referrals_coupon_data' ); | |
/** | |
* @param array $coupon_data | |
* @return array | |
*/ | |
function my_automatewoo_referrals_coupon_data( $coupon_data ) { | |
$coupon_data['exclude_sale_items'] = true; | |
return $coupon_data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment