Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function add_hooks () {
- // Modify here if changing contact form
- add_action('wpcf7_mail_sent',array($this,'integrate_affiliate_code',));
- }
- private function integrate_affiliate_code () {
- // Use a jsonHandler to manually add 5 Pounds to the affiliate
- $jsonHandler = new WPAM_Util_JsonHandler;
- // Modify here if you want to increase payouts or switch affiliate plugins
- $jsonHandler->addTransaction($affiliate, 'credit',5, "Consultation Referral");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement