Logout Link

This topic contains 3 replies, has 2 voices, and was last updated by  Guust 9 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #47730

    fourfoot
    Full Member
    Post count: 38

    Hi guys,
    can you let me know the code to add a “logout” link in the menu. I know there is one in the “My Dashboard” but I want to place it elsewhere too.

    regards.

    Miles

    #47733

    Guust
    Moderator
    Post count: 29970

    /wp-login.php?action=logout

    #47738

    fourfoot
    Full Member
    Post count: 38

    Thanks Guust,
    that does log out but it has the screen where it askes you if you want to log out (please see screenshot)

    The “logout” button in “My Dashboard” does not ask this. Are you able to let me know if I need to add more code to the link?

    I noticed the code on the ‘My dashboard” logout link is:

    “http://www.popupshops.com.au/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fwww.popupshops.com.au&_wpnonce=e4cf1f72eb”

    but I’m not sure if that has been auto generated? If I add that code to my menu link it also ask me if I ant to logout.

    Regards.
    Miles

    #47744

    Guust
    Moderator
    Post count: 29970
Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount