Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. private function add_hooks () {
  2. // Modify here if changing contact form
  3. add_action('wpcf7_mail_sent',array($this,'integrate_affiliate_code',));
  4. }
  5.  
  6. private function integrate_affiliate_code () {
  7. // Use a jsonHandler to manually add 5 Pounds to the affiliate
  8. $jsonHandler = new WPAM_Util_JsonHandler;
  9. // Modify here if you want to increase payouts or switch affiliate plugins
  10. $jsonHandler->addTransaction($affiliate, 'credit',5, "Consultation Referral");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement