Easily add a log out link or button to a post or page using a simple shortcode.
There are 3 shortcodes that can be used:
All 3 shortcodes all support 3 attributes/parameters:
[logout text="" class="" redirect=""]
The 3 supported attributes/parameters are:
[logout text="Log Off"]
Log Offlink that logs the user out.
[logout_to_home text="Log Off"]
Log Offlink that logs the user out and redirects them to your home page.
Note: the shortcodes will return nothing/empty if the user isn't logged in.
This plugin is inspired by the Logout Button plugin by Ben Poland.
If you like, you can contribute to this plugin on GitHub.
Requires: 3.9 or higher
Compatible up to: 4.5.3
Last Updated: 4 months ago
Active Installs: 3,000+
Got something to say? Need help?