Easily add a log out link or button to a post or page using a simple shortcode.
As of April 2026, Log Out Shortcode is a WordPress link plugin with 3.0K+ active installations and a 5/5 rating from 12 reviews. It has been downloaded 51K+ times in total. Requires WordPress 6.0+ and PHP false+. Available on WordPress.org since 2014. Last updated 1 year ago — may have compatibility concerns. Downloads are down 11% this week. Top alternative: Custom Post Type Permalinks.
There are 3 shortcodes that can be used:
[logout] - A standard Log Out link, where the user stays on the login screen after being logged out.
[logout_to_home] - A link that logs the user out, and redirects them to your home page.
[logout_to_current] - A link that logs the user out, and redirects them back to the current page/URL.
Advanced Usage:
All 3 shortcodes all support 3 attributes/parameters:
[logout text="" class="" redirect=""]
The 3 supported attributes/parameters are:
text=""
– The text to use for the link anchor text.
– Default: Log Out
class=””
– The HTML class(es) to use for the link. Multiple classes should be separated by a space.
– Default: logout
redirect=””
– The path/URL to redirect the user to after they…
It works finelly, thank you!
Working great
Worked first time, does exactly what it says it will.
Using in conjunction with Registration Magic and Hide This. Works great to give me complete control of displaying login/logout links.
Cannot find the words to thanks you for this plugin, I spend almost 5 hours looking for a way to customize and redirect the logout URL, all other plugins care only about registration and they dont consider the logout button
Thanks alot
| WordPress | 6.0+ requiredTested up to 6.6.5 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.