Title: Log Out Shortcode
Author: Tectalic
Published: <strong>Aŭgusto 3, 2014</strong>
Last modified: Julio 17, 2024

---

Priserĉi kromprogramojn

Tiu ĉi kromprogramo **ne estis testita en la 3 lastaj gravaj eldonoj de WordPress**.
Eble ĝi ne plu estas prizorgata kaj ĝi eble havus kongruajn problemojn en novaj 
versioj de WordPress.

![](https://s.w.org/plugins/geopattern-icon/log-out-shortcode.svg)

# Log Out Shortcode

 De [Tectalic](https://profiles.wordpress.org/om4/)

[Elŝuti](https://downloads.wordpress.org/plugin/log-out-shortcode.1.1.2.zip)

 * [Detaloj](https://eo.wordpress.org/plugins/log-out-shortcode/#description)
 * [Pritaksoj](https://eo.wordpress.org/plugins/log-out-shortcode/#reviews)
 *  [Instalo](https://eo.wordpress.org/plugins/log-out-shortcode/#installation)
 * [Programado](https://eo.wordpress.org/plugins/log-out-shortcode/#developers)

 [Helpo](https://wordpress.org/support/plugin/log-out-shortcode/)

## Priskribo

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](https://wordpress.org/plugins/logout-button/).

If you like, you can [contribute to this plugin on GitHub](https://github.com/OM4/log-out-shortcode).

## Instalo

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

## OD

### What shortcodes can be used?

Please see the [plugin description](https://wordpress.org/plugins/log-out-shortcode/)
for a list of shortcodes and supported parameters.

## Pritaksoj

![](https://secure.gravatar.com/avatar/b36960d856522c43483623b8c5196d8c90013cdddd3e4b2bc82a6fd1b3bbfb6b?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-16222/)󠁿

 [firosyd](https://profiles.wordpress.org/firosyd/) Marto 25, 2024

It works finelly, thank you!

![](https://secure.gravatar.com/avatar/08cacad180324714624d4324fccc2a9a6e5a2e40522a1d64239c0182658e7e05?
s=60&d=retro&r=g)

### 󠀁[Simple yet brilliant](https://wordpress.org/support/topic/simple-yet-brilliant-2/)󠁿

 [DJF3](https://profiles.wordpress.org/djf3/) Oktobro 18, 2018

Working great

![](https://secure.gravatar.com/avatar/46a067621454d87b729cafce56809c9f70141bd315596cd1c41b52dfe025045c?
s=60&d=retro&r=g)

### 󠀁[Thank You Plugin Author](https://wordpress.org/support/topic/thank-you-plugin-author/)󠁿

 [steve-t](https://profiles.wordpress.org/steve-t-1/) Oktobro 11, 2018

Worked first time, does exactly what it says it will.

![](https://secure.gravatar.com/avatar/c1aee8814945fadf9c63b6cfb8d5d0c76a22488ba7181342f3813efb47a89c35?
s=60&d=retro&r=g)

### 󠀁[Simple, works great.](https://wordpress.org/support/topic/simple-works-great-23/)󠁿

 [Pedro Magnifico](https://profiles.wordpress.org/pedro-magnifico/) Novembro 22,
2017 1 reply

Using in conjunction with Registration Magic and Hide This. Works great to give 
me complete control of displaying login/logout links.

![](https://secure.gravatar.com/avatar/991756cfe95d1d44b99da8e09b783211cfa580134fd6578eae7eb10582097ff5?
s=60&d=retro&r=g)

### 󠀁[Many Thanks](https://wordpress.org/support/topic/many-thanks-31/)󠁿

 [queeneve](https://profiles.wordpress.org/queeneve/) Novembro 11, 2017 1 reply

Cannot find the words to thanks you for this plugin, I spend almost 5 hours looking
for a way to customize and redirect the logout URL, all other plugins care only 
about registration and they dont consider the logout button Thanks alot

![](https://secure.gravatar.com/avatar/70d41198497ebad3fd4a5222f1060dbc376512151f3650bdedd7f4c10ada307d?
s=60&d=retro&r=g)

### 󠀁[Works as promised](https://wordpress.org/support/topic/works-as-promised-73/)󠁿

 [becaneweb](https://profiles.wordpress.org/becaneweb/) Februaro 17, 2017

Thanks for code

 [ Legi ĉiujn 12 pritaksojn ](https://wordpress.org/support/plugin/log-out-shortcode/reviews/)

## Kontribuantoj k. programistoj

“Log Out Shortcode” estas liberkoda programo. La sekvaj homoj kontribuis al la kromprogramo.

Kontribuantoj

 *   [ Tectalic ](https://profiles.wordpress.org/om4/)
 *   [ James Collins ](https://profiles.wordpress.org/jamescollins/)

[Traduki “Log Out Shortcode” en vian lingvon.](https://translate.wordpress.org/projects/wp-plugins/log-out-shortcode)

### Ĉu interesita en programado?

[Browse the code](https://plugins.trac.wordpress.org/browser/log-out-shortcode/),
check out the [SVN repository](https://plugins.svn.wordpress.org/log-out-shortcode/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/log-out-shortcode/)
by [RSS](https://plugins.trac.wordpress.org/log/log-out-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Ŝanĝprotokolo

#### 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

 * Unua eldono.

## Metadatumoj

 *  Version **1.1.1**
 *  Last updated **antaŭ 2 jaroj**
 *  Active installations **3.000+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.6.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/log-out-shortcode/)
 * Tags
 * [link](https://eo.wordpress.org/plugins/tags/link/)[log out](https://eo.wordpress.org/plugins/tags/log-out/)
   [logout](https://eo.wordpress.org/plugins/tags/logout/)[shortcode](https://eo.wordpress.org/plugins/tags/shortcode/)
 *  [Altnivela rigardo](https://eo.wordpress.org/plugins/log-out-shortcode/advanced/)

## Pritaksoj

 5 out of 5 stars.

 *  [  12 5-star reviews     ](https://wordpress.org/support/plugin/log-out-shortcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/log-out-shortcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/log-out-shortcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/log-out-shortcode/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/log-out-shortcode/reviews/?filter=1)

[Aldoni mian recenzon](https://wordpress.org/support/plugin/log-out-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/log-out-shortcode/reviews/)

## Kontribuantoj

 *   [ Tectalic ](https://profiles.wordpress.org/om4/)
 *   [ James Collins ](https://profiles.wordpress.org/jamescollins/)

## Helpo

Got something to say? Need help?

 [Vidi helpforumon](https://wordpress.org/support/plugin/log-out-shortcode/)