WordPress plugin intelligence profile

Log Out Shortcode

Easily add a log out link or button to a post or page using a simple shortcode.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.6
Current version1.1.1
WordPress coverageTested up to WordPress 6.6
Minimum stackWP 6.0 · PHP —
Directory statusactive
Last directory update17 Jul 20242y ago
Active installations2K+Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 12 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Log Out Shortcode version 1.1.1 as active, updated 2y ago and tested up to WordPress 6.6.

Overview

About this plugin

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.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • log out
  • link
  • logout
  • shortcode
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.6

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.6.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.6
Minimum requirementsWordPress 6.0 · PHP not listed
Update activity17 Jul 20242y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.