• using wp_logout_url( get_permalink() ); as a link for the logout create some little problem with some template on the home page:
    get_permalink() however, get’s the permalink of the current post in the loop (if you’re using it outside the loop, you’ll find that it takes the user to the last post in the loop after they log out).

    I think it would be better to get the url of whatever page you’re currently on, using $_SERVER[‘REQUEST_URI’];

    http://wordpress.org/plugins/login-logout-switcher/

  • The topic ‘logout redirection’ is closed to new replies.