After Completing Affiliate Registration page. How to change the default message?

Posted in

I registered as an affiliate and after I am done it shows this message:

If you are not an affiliate, you can join the affiliate program here:

Thanks for signing up!

Please check your email for the confirmation link.

Log in here.

How do I change the code where that log in page takes them? Right now it takes them to the WP login. I already installed the
Peter’s Login Redirect plugin and it is working for all other log in/out instances.

Please help!

6 Responses to After Completing Affiliate Registration page. How to change the default message?

  1. George March 2, 2017 at 7:36 am #

    That’s great!

  2. Carolyn March 1, 2017 at 7:20 pm #

    fixed it. thanks.

  3. Carolyn March 1, 2017 at 5:22 pm #

    well I tried and now I am getting this error:
    Parse error: syntax error, unexpected end of file in /home/npl/acceleratingyoungminds.com/wp-content/themes/bridge-child/functions.php on line 33

    HELP

  4. George March 1, 2017 at 5:06 pm #

    The Login in part is the only part that cannot be modified.
    All you have to do is copy my snippet and paste it in your functions.php file. This file is located in your Dashboard under Appearance > Editor. On the right column there are files listed, you should click on the functions.php file. At the end of it you can paste the snippet.

    If though you still can’t do it yourself, just provide me with the messages you want to display for Thanks for signing up! and for Please check your email for the confirmation link. and your login page link. I will prepare a simple plugin for you to use in your installation.

    Cheers,
    George

  5. Carolyn March 1, 2017 at 3:39 pm #

    This is a bit beyond my skill, is there a way just to delete the part that says Log in? I looked at the post/page and it does not show there.

  6. George March 1, 2017 at 9:57 am #

    Hi Carolyn,

    There are three filters you can hook to and change these messages:

    add_filter( 'affiliates_thanks_sign_up_text', 'gt_affiliates_signup_text' );
    function gt_affiliates_signup_text( $thanks_message ) {
    return 'Well done!';
    }

    add_filter( 'affiliates_check_confirmation_text', 'gt_affiliates_check_confirmation_text' );
    function gt_affiliates_check_confirmation_text( $confirmation_text ) {
    return 'Check your email';
    }

    add_filter( 'affiliates_registration_login_redirect_url', 'gt_affiliates_registration_login_redirect_url' );
    function gt_affiliates_registration_login_redirect_url( $url ) {
    return 'http://url/of_the_page/where_you_prefer_to_redirect';
    }

    All the messages are quoted after the return word. Try it and modify the message(s) accordingly.
    This block should be placed in your functions.php file of your child theme. You should be using a child theme in order to keep the modifications after a theme update.

    Kind regards,
    George

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

Share