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

Custom Logout Link

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › Custom Logout Link

Tagged: Logout, logout tweeks

  • This topic has 3 replies, 4 voices, and was last updated 11 years, 1 month ago by wzp.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 25, 2011 at 12:57 am #3038
    ib6500
    Member

    Hi,

    I need to place logout link in the header of all pages when a user is logged in. What would be the php code to test if a user is logged in display the logout link and the associated link/action to log the user out.

    thanks

    March 25, 2011 at 11:30 pm #30647
    amin007
    Participant

    WP eMember Miscellaneous Tweaks

    You simply add ?event=logout to your site URL to make the logout link. For example the following would be a logout link:

    http://www.example.com/?event=logout

    May 12, 2014 at 5:19 pm #30648
    wplove
    Spectator

    I want a similar thing: a text link in my header that says “Login” if user is not logged in and “Logout” if user is logged in. The link would go to a Login/out page with the login shortcode on it.

    I’m not super PHP-savvy. Would someone be able to provide the code I could use to drop into my header.php file?

    Thanks!

    May 12, 2014 at 9:04 pm #30649
    wzp
    Moderator

    Maybe these will help:

    Membership plugin – Is there a shortcode for the log out link?

    eMember – Compact Login link with Fancy Popup

    https://support.tipsandtricks-hq.com/forums/topic/how-to-build-a-custom-php-widget-for-e-member

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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