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.