Last active
September 14, 2022 11:24
-
-
Save danielbitzer/0e4a703dd69a5b83be6955ae5c1317c1 to your computer and use it in GitHub Desktop.
AutomateWoo Refer A Friend - Change referral coupon type to sign up fee percentage discount
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_custom_coupon_data' ); | |
/** | |
* @param array $coupon_data | |
* @return array | |
*/ | |
function my_automatewoo_referrals_custom_coupon_data( $coupon_data ) { | |
$coupon_data['discount_type'] = 'sign_up_fee_percent'; | |
return $coupon_data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment