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 name´s user when is log in and a link for close the sesion??

Simple Membership Plugin › Forums › Simple Membership Plugin › How can i show the name´s user when is log in and a link for close the sesion??

Tagged: close sesion, log in

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 1 month ago by nur.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 10, 2015 at 8:59 am #1198
    thepipi
    Participant

    How can i show the name´s user when is log in and a link for close the sesion in the header???? I khow for the name´s user this code:

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

    and i would like to insert the tipical close sesion all together in the header.

    I also before the user name´s user a word like “wellcome , MR XXXXXXX, close sesion”.

    Please can you tell the code to write……thanks a lot

    March 11, 2015 at 2:11 am #1211
    nur
    Participant

    what do you mean by “close session”? did you mean “logout”?
    for logout, use this:

    
    $auth->logout();
    
  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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