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);
If you need "ligin-logout" link you can use this code without the plugin:
<?php wp_loginout( get_permalink() ); ?>




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!!!
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
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.
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
Try smth like this:
$username_link = ''.$username.'';
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?
Yes, keep the code and just change the admin_url() section. Good luck
Thanks I will figure it out, Thanks for your time. really appreciate. Hopefully I wont need to more
Thanks bro for fast reply. Very2 appreciate it.
One more question, How to make it display in center and bold?
try to add this css styles into your style.css file:
.wrap_login_logout {text-align:center; font-weight:bold;}