Speedup WordPressLogin-logoutDonateGitHub

WordPress plugin: widget with login or logout link. It is the replacement of the default Meta widget.

"Login Logout" plugin add widget with login or logout link.

If user is not logged in there are two links:

  • login (after login action user will return to previous page);
  • register (if user can register) (if checkbox is active);

If user is logged in there are two links:

  • logout (after logout action user will return to previous page);
  • site admin (if checkbox is active);


  • Spanish translation made by Maria Ramos from WebHostingHub
  • Serbian translation made by Borisa Djuraskovic from WebHostingHub

If you need "login-logout" link you can use this code without the plugin:

<?php wp_loginout( get_permalink() ); ?>

If you need "register-admin" link you can use this code without the plugin:

<?php wp_register('', ''); ?>

121 comments on “Login-logout

  1. i found solution to my complaint earlier, the plugin is perfect! keep it active, will be making my token donation to support you.

  2. This is a great plugin only if logged in users are not redirected to admin bar profile

  3. I am trying to use this but when I click the link to log in it just gives me
    this as the url /?login=failed&errcode=empty_username
    I never see the page to enter the login information
    Have I done something wrong.

    1. Login-Logout plugin does not change login action. You need to look deeper what can be the reason for your issue. I think it might be another plugin or some custom code in the theme.

    1. Hi Ken,
      I am able to see the Login link on mobile devices.
      Can you provide mode details which device you are having issue with?

  4. Why did my login logout move to the left in chrome.
    I have been using this plugin for a long time with no problems.
    just recently my login has moved to the left in chrome but is fine in all other browsers

    1. Hi Chip,
      Can you send me the URL with the issue?
      On this page everything looks fine for me - sportsearnings.com

  5. Hi,
    Thank you very much for your plugin but I don't want to use it anymore and I can't totally delete the plugin. there's stil an incorrect french translation 'DéSe connecter à Mon Compte' instead of "Se déconnecter de mon Compte" in the account page (in the colum and in the text). Please, help me to remove this. Thanks!

  6. I am using development version (4.7-RC1). With Theme twentyseventeen-child.
    Your plugin looks nice, but the logout link doesn't work. When I logout, it just stays on the login page.

    1. I tried plugin on the same version of WP and the same theme and plugin works properly.
      Can you share the URL with the issue?

Leave a Reply

Your email address will not be published. Required fields are marked *