How do I add a users web URL and admin URL to an account page

I setup a membership website that automatically creates a wordpress multisite subsite when a user becomes a member. I would like them to have access to the following details in their my account area:

1. Their website url

2. Their admin url (wp-admin)

3. Their username

4. Their password

Their account page manages their membership so I need to display the rest of this for each of the different members. What code can I add to the page to display this for each of them?

Website: pestlistmarketing.com

  • Ash
    • Code Norris

    Hello @inspirationmedia

    I hope you are well today and thanks for asking the question.

    You can use some php code to display those information.

    1. Their website url

    <?php echo site_url(); ?>

    Their admin url (wp-admin)

    <?php echo site_url().'/wp-admin'; ?>

    3. Their username

    global $current_user;
    get_currentuserinfo();
    echo 'Username: ' . $current_user->user_login;

    4. Their password

    You can’t show the password unless you store the password in a different table. As, retrieve original password in not possible in wordpress.

    Hope it helps! Please feel free to ask more question if you have.

    Cheers

    Ash

  • Ash
    • Code Norris

    Well, how’s about redirecting them to a page where all of this sites will be listed?

    Please use the attached zip file. Extract the zip, put it in /wp-content/mu-plugins/ folder. If there is no folder named “mu-plugins”, just create one.

    Then check and let me know the result.

    Please let me know if you find this is helpful, or if you have any further questions.

    Cheers

    Ash