Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

How can i show the names of the user when logged in?

Simple Membership Plugin › Forums › Simple Membership Plugin › How can i show the names of the user when logged in?

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 6 months ago by thepipi.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 13, 2015 at 10:57 am #989
    thepipi
    Participant

    When the user logs in i want to show something like …. Welcome to (User’s name) in the header site… and I don’t know how do it…….someone can help me? —- Thanks a lot

    February 14, 2015 at 1:35 am #998
    nur
    Participant

    you can get user name using this code:

    
    $auth = BAuth::get_instance();
    $user_name = $auth->is_logged_in()? $auth->get('user_name'): '';
    

    to show this on the header, you need to edit the theme you are using.

    February 14, 2015 at 12:30 pm #1017
    thepipi
    Participant

    Thanks a lot¡¡

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

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy