Prosites Checkout - Backlink to dashboard/website

Hello,

I'm wondering how can I bring the user back from the pro sites checkout to his website or dashboard. Dashboard menu "your account" also redirects the user to the checkout page, where he can find his subscription information. Is it possible to set the backlink, so the user can return to his website without clicking the browser's back arrow?

Below the screenshot of checkout/subscription page, there is no link or information how to go back to the website.

Best regards,
Damian

  • Predrag Dubajic
    • Support

    Hey @PrimePager,

    Hope you're doing well today :slight_smile:

    Such option is not currently possible but you can try using code below that will enable you to add [list_sites] shortcode on your pro sites page and thus list all user blogs.

    function custom_shortcode() {
    
    	$user_id = get_current_user_id();
    	$user_blogs = get_blogs_of_user( $user_id );
    	echo 'Your current sites:<ul>';
    	foreach ($user_blogs AS $user_blog) {
    	    echo '<li><a href="'.$user_blog->siteurl.'">'.$user_blog->blogname.'</a></li>';
    	}
    	echo '</ul>';
    
    }
    add_shortcode( 'list_sites', 'custom_shortcode' );

    You can add this code to your theme functions.php file or create new .php file in mu-plugins and place the code in there but in that case you just need to add <?php before the code.

    Let us know if this will work for you.

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.