Problem with Logging out a current user. (1 post)

  1. arav369
    Posted 3 years ago #

    Hi admin,

    I have a Logout link (within .. tags). When the user clicks on that it should logout and redirect to the current page. I have used ` href ="<?php echo wp_logout_url(get_permalink()); ?>" .But that does not seem to work properly. When I click on the link, nothing happens. When I Right-click on the link and open in a new tab, the user is logged out. Please tel me how I should go about correcting this.

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Topic