Plugin info

Total downloads: 50,527
Active installs: 3,000
Total reviews: 12
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 7/17/2024 (532 days ago)
Added to WordPress: 8/3/2014 (11 years old)
Minimum WordPress version: 6.0
Tested up to WordPress version: 6.6.4
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 532 days ago • 12 reviews

30/100

Is Log Out Shortcode abandoned?

Possibly abandoned (last update 532 days ago).

Compatibility

Requires WordPress: 6.0
Tested up to: 6.6.4
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Logout Link Placement Plugin
Rating 0.0/5 (0 reviews)Active installs 10
Login or Logout Menu Item
Rating 4.8/5 (22 reviews)Active installs 20,000
Logout Button
Rating 5.0/5 (2 reviews)Active installs 100
Logout to Homepage
Rating 5.0/5 (2 reviews)Active installs 20
Get Login Plugin
Rating 5.0/5 (1 reviews)Active installs 20

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.

Installation

  1. Activate the plugin.
  2. Add one of the shortcodes to a post/page.

Frequently Asked Questions

What shortcodes can be used?

Please see the plugin description for a list of shortcodes and supported parameters.

Review feed

Ulrich
9/3/2016

Wonderfully simple plugin

I was just about to write a plugin like this for myself. This is simple and to the point with just the right number of features.

Screenshots

No screenshots available

Changelog

1.1.2

  • Mark compatibility with WordPress version 6.6.

1.1.1

  • Mark compatibility with WordPress version 6.5.

1.1.0

  • Minimum required WordPress version updated to 6.0.
  • Mark compatibility with WordPress version 6.4.

1.0.8

  • Fix Typo

1.0.7

  • Mark WP 5.5 compatible

1.0.6

  • Mark WP 5.2 compatible

1.0.5

  • Fix a bug that meant it was not possible to use specify multiple classes in the class=”” attribute. Thanks to @hughc for the bug report.

1.0.4

  • WordPress 4.4 compatibility.
  • Documentation updates.

1.0.3

  • Clarify usage of the redirect=”” parameter.
  • WordPress 4.1 compatibility.

1.0.2

  • WordPress 4.0 compatibility.

1.0.1

  • WordPress 3.9.2 compatibility.
  • Add [logout] shortcode to plugin description.

1.0

  • Initial release.