Login redirect on Pro Sites checkout page

At the bottom of the checkout page, under the pricing table the following text for folks to login redirects them to their account page "Already have a site? Login now."
Is it possible to change the redirect so it takes them to their dashboard home screen?
I've enabled support access.
Thank you in advance!

  • Nahid
    • Tech Support

    Hi there Debbie !
    Hope you are having a great day!

    Well, you need to put some custom codes to make change the link. Just put in the following code in your theme's functions.php file.

    add_filter( 'prosites_render_checkout_page', function( $content, $blog_id, $domain ){
    
        $original_link = 'http://old-url.com';
        $new_link = 'http://new-url.com';
        $content = str_replace( $original_link, $new_link, $content );
    
        return $content;
    }, 10, 3 );

    Replace http://old-url.com with your current URL and http://new-url.com with your required URL.

    Hope this helps. Let me know what the results are. Thanks!

    Best,
    Nahid.

  • Debbie
    • Webb Weaver

    Hi Nahid,

    Thanks so much for this! Although I'm having a challenge getting the new url to direct people to their own website admin area. I've tried various things & when I try logging in as an admin to one of the sites I keep getting this error in the attached image.

    Thanks for your help!

  • Nahid
    • Tech Support

    Hi again Debbie !

    This seems to happen when a Pro Sites signup was not completed, usually due to failed payment. It's probably that the user's account was created but blog not activated yet and then they try to access dashboard which takes them to the main site and they don't have access to it. Can you confirm these actions?

    Thanks!

    Regards,
    Nahid.

  • Debbie
    • Webb Weaver

    Hi Nahid Ferdous Mohit

    What you say makes sense. However that's not what's happening. I've removed the above code from the functions file, and logged in from the login link at the bottom of the checkout page as a user with a paid account. You'll see in the attached image that after they log in, they are still on the checkout page, which now shows their subscription information above the rest of the information that shows on the page to non subscribers.
    The problem is that my subscribers who log in using the link at the bottom of the checkout page find it confusing to see this information. They don't know that when they click to see their profile that they'll also see the admin menu. That's why I'm hoping it's possible to change the behavior of that link from staying on the checkout page to instead redirect to the dashboard of the particular subscriber.

    Thanks!
    Debbie

  • Nahid
    • Tech Support

    Hi there Debbie !
    Hope you are doing well today and please excuse my late response.

    I'm afraid you can't redirect Pro Sites' members to their Dashboard as the system cannot recognize their ones at that instant. I'd suggest customizing the checkout page, removing the admin menu and so on according to your will.

    Regards,
    Nahid.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.