• Best Multilingual Plugin
  • Compatible With Your Favorite Themes
  • Automatic and Human Translation
  • Translation, Multilingual, SEO

Log Out Shortcode

by OM4 Software

12 Ratings

  • 5.0

Active Installations

4,000+

Last Update

2 days

Quality

D

Plugin Description

Description
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 are logged out.
– Default: the WordPress login screen.
– Note: must be a URL or path on the same domain name as the WordPress website (cannot be an external domain/URL)
Some Examples:
[logout text=”Log Off”] – A
Log Off
link that logs the user out.
[logout redirect=”/members/”] – Log the user out, and redirect them to
/members/
.
[logout_to_home text=”Log Off”] – A
Log Off
link that logs the user out and redirects them to your home page.
[logout class=”log-out-link”] – Use a custom CSS/HTML class name for the log out link.
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.

Similar Plugins

  • Report Bug
The content on this website originates from various sources. All rights to the original content remain with the respective author. If you believe that your copyrights have been infringed by the use of content on this website, please contact us at info@plugin-guru.com. We will remove the content in question immediately.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Collections

Create your first Collection

To create a collection, simply click on the symbol on the desired plugin.

You can see this symbol when you move the mouse over the plugin. 

Current Level

Plugin Magican

You have reached 0 views on your collections and are currently Plugin Magican. You magically help people find the right plugins and are a great asset to the community

0 of 500 views reached