21 Responses to Email Notifications

  1. kento June 6, 2014 at 9:27 am #

    This is now available, details are on the Notifications documentation page.

  2. Kase April 22, 2014 at 7:40 pm #

    Hi Kento,

    I inserted the code into function.php and it works, but it sends the email to my sites admin account. Not the new affiliate. How to I fix this? Is it better to use the following?


    • antonio April 23, 2014 at 6:55 am #

      Affiliates registration send the wordpress registration email. You can customize this with SB Welcome Email editor.
      But if you need to send an extra email indicating that the user is now an affiliate, you can use Affiliates Welcome Email.

  3. Phillip April 19, 2014 at 11:26 pm #

    Thanks Kento,
    Do I put this into my functions.php?

    • antonio April 22, 2014 at 9:22 am #

      if you put @kento code in your function.php file, it should work.

  4. kento April 19, 2014 at 9:18 am #

    Hi Phillip,

    There are at least two options, one would be to use the following filters ( <- link to their documentation page): affiliates_new_affiliate_registration_subject



    function my_affiliates_new_affiliate_registration_message( $message ) {
    return 'Thanks for joining our Affiliate Program!';
    add_filter( 'affiliates_new_affiliate_registration_message', 'my_affiliates_new_affiliate_registration_message' );

    Another would be to use Affiliates Gravity Forms – note that this option requires a Gravity Forms Developer License as it requires the User Registration Add-On.

    • Phillip May 2, 2014 at 1:14 pm #

      How do I include their user name and password in the email message?

      • antonio May 6, 2014 at 6:42 am #

        this code can help you (I haven’t tested):

        $affiliate_id = Affiliates_Service::get_referrer_id();
        if ( $user_id = affiliates_get_affiliate_user( $affiliate_id ) ) {
        if ( $user = get_user_by( 'id', $user_id ) ) {
        echo $user->name;

        I think the password can’t be showed for security reasons.

        • Phillip May 7, 2014 at 12:40 pm #

          By default, when a user joins the affiliate program they are sent an email. The email includes their username and the system generated password, and the url to /wp-login.php

          I want to edit this email?? Because it has nothing else in it, no ‘welcome’, nothing at all professional and welcoming!?

          • antonio May 7, 2014 at 4:30 pm #

            with SB Welcome Email editor plugin you can do it.

          • kento May 7, 2014 at 9:38 pm #

            I think we should actually add a feature that allows to do this from within the notifications section. Although we already have customizable notifications for referrals, we should also provide a more direct way to edit the email that is sent to new affiliates. I’ll try to make it possible to include this in the next update, it’s way easier if you can just edit the email content that new affiliates receive through the user interface instead of having to install another plugin for that.

          • Phillip May 8, 2014 at 1:18 am #

            Thank you very much @Kento, that is exactly what I would like to see. Do you have any idea when that might happen?

            Kind Regards,

            • kento May 16, 2014 at 9:52 am #

              Hi Phil,

              We’re currently preparing the next release which has this added, if tests conclude it will be within the week 🙂


              • Phillip May 28, 2014 at 5:17 am #

                Hi Kento,
                Any idea when this will be ready yet?


                • kento June 2, 2014 at 8:41 am #

                  Hi Phil, we’re about to release it, it took longer than expected but we managed to put in quite a few extras 😉

        • Phillip May 16, 2014 at 11:02 am #

          Awesome Kento, thanks.

    • Phillip May 2, 2014 at 1:41 pm #

      I added the above to my functions.php and now the email doesn’t go at all?
      Which php file contains the script that generates the default registration email to the new registrant?


      • antonio May 6, 2014 at 6:36 am #

        maybe there is a code error?
        Affiliates uses the wordpress registration system, so is not recommended to modify the code.
        Affiliates Welcome Email can help you.

    • Phillip May 5, 2014 at 12:07 pm #

      Can you please please tell me how to configure a reasonable affiliate registration notification email, the default sent to the user is just not what we want. also please please have the ability to customize all sent public content from within the plugin (like in woocommerce would be a good start).

      • kento May 7, 2014 at 8:31 am #

        Hi Philip,

        You have this available under Affiliates > Notifications.


        • Phillip May 7, 2014 at 12:36 pm #

          Sorry kento, but I want to edit the message that gets sent to the user when they first sign up as an affiliate. I do not see this anywhere in the “Affiliates > Notifications” section?

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account