Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi xmahlangu,

    You can use the action affiliates_after_register_affiliate like this:

    add_action( 'affiliates_after_register_affiliate', 'add_affiliate_to_mail_list' );
    function add_affiliate_to_mail_list ( $userdata ) {
    $new_affiliate_email = $userdata['user_email'];
    //your code to add $new_affiliate_email to mail list goes here
    }

    Kind regards,
    George

    Thread Starter xmahlangu

    (@xmahlangu)

    Thanks @gtsiokos. Please excuse my limited experience. Where do I add the code?

    Also I use Mailpoet/Wysija for my newsletters. How would I implement that?

    You are welcome xmahlangu,

    You should add the previous snippet in your child theme’s functions.php file. Also, please have a look at this on how to add the user to the mailpoet subscriber’s list.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Editing Registration Form’ is closed to new replies.