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.4
Last Updated: 1 month ago
Active Installs: 2,000+
Got something to say? Need help?