Login-logout

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:

WordPress Login-Logout plugin

  • 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:

WordPress Login-Logout plugin

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

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

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

View source of the Login-Logout plugin.

VN:F [1.9.17_1161]
Rating: +1 (from 1 vote)

63 thoughts on “Login-logout

  1. Fyi, I still have to do some work on where I want to direct it but I changed the admin_url to home_url which is working at the moment. Thanks again!!!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  2. Hey there,
    Great plugin, How would I redirect the username link (welcome mike)to the site profile instead of the wp dashborad? Dont want users to have access of the dashboard period.

    Thanks

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • There is no such possibility now. You may change it manually. Check file login-logout.php line-72. Also increase plugin version to 100 for example for avoiding plugin updates and your code losing.

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
      • Thank you so much for the prompt response. Ok, Im really new to all this.
        $username_link = ''.$username.''; Would i change it to buddypress profile php?

        I want it to go to mysite/members/'.$username' I think

        VA:F [1.9.17_1161]
        Rating: 0 (from 0 votes)
          • I lost all content when I use that. Do i keep the code and just change admin_url part or change everything in the link section?

            VA:F [1.9.17_1161]
            Rating: 0 (from 0 votes)
            • Yes, keep the code and just change the admin_url() section. Good luck ;)

              VN:F [1.9.17_1161]
              Rating: +1 (from 1 vote)
              • Thanks I will figure it out, Thanks for your time. really appreciate. Hopefully I wont need to more :-)

                VA:F [1.9.17_1161]
                Rating: 0 (from 0 votes)
  3. Thanks bro for fast reply. Very2 appreciate it.

    One more question, How to make it display in center and bold?

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • try to add this css styles into your style.css file:
      .wrap_login_logout {text-align:center; font-weight:bold;}

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">