remove undeeded filter
Remove $affiliate_id from being passed into functions
Added back old calculate_referral_amount() function