Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eMember » WP eMember Tweaks

Custom Logout Link

(4 posts) (3 voices)
  • Started 1 year ago by ib6500
  • Latest reply from amin007
  • Possible Solutions (Related Topics):
    1. link wp-admin login button to custom wp-emember login/logout page
    2. Download Link not being included in email to customer after sale
    3. WP eMember - Creating or Customizing the Compact Login Widget/Links
    4. Affiliate Platform - creating custom links
    5. Customizing logout text after redirect

Tags:

  • Logout
  • logout tweeks
  1. 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

    Posted 1 year ago #
  2. amin007
    Key Master

    http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248

    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
    Posted 1 year ago #
  3. casstyson

    Is there any way to make that display "Log In" for logged out users?

    Posted 1 year ago #
  4. amin007
    Key Master

    I am not sure I understand what you are really trying to do.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin