Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to echo emember login name?

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › How to echo emember login name?

Tagged: echo user_name, emember login name

  • This topic has 1 reply, 2 voices, and was last updated 15 years, 4 months ago by amin007.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 8, 2010 at 8:58 pm #761
    gymgangsta
    Member

    I would like to echo the wp emember login name

    I am using this code:

    <?php echo $user_name = $current_user->login_user_name; ?>

    and it seems to work when I login as admin only, It does not appear when someone has joined. Could you be so kind as to tell me what is correct in displaying the username? I’ve tried almost all of them emember_user_name, emember_login_name etc etc…

    cheers and many thanks for your great support!

    February 9, 2010 at 12:29 am #17854
    amin007
    Participant

    Use this to retrieve the currently logged in users info:

    <?php

    global $auth;

    $user_name = $auth->getUserInfo('user_name');

    echo $user_name

    ?>

    You can retrieve the User ID with the following line of code:

    $user_id = $auth->getUserInfo(‘member_id’);

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ