Title: Log Out Shortcode
Author: Tectalic
Published: <strong>3 août 2014</strong>
Last modified: 17 juillet 2024

---

Recherche d’extensions

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

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

# Log Out Shortcode

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

[Télécharger](https://downloads.wordpress.org/plugin/log-out-shortcode.1.1.2.zip)

 * [Détails](https://fr.wordpress.org/plugins/log-out-shortcode/#description)
 * [Avis](https://fr.wordpress.org/plugins/log-out-shortcode/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/log-out-shortcode/#installation)
 * [Développement](https://fr.wordpress.org/plugins/log-out-shortcode/#developers)

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

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

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

## Installation

 1. Activer l’extension.
 2. Add one of the shortcodes to a post/page.

## FAQ

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

## Avis

![](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/) 25 mars 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/) 18 octobre 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/) 11 octobre 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/) 22 novembre 
2017 1 réponse

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/) 11 novembre 2017 1 réponse

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/) 17 février 2017

Thanks for code

 [ Lire les 12 avis ](https://wordpress.org/support/plugin/log-out-shortcode/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« Log Out Shortcode » est un logiciel libre. Les personnes suivantes ont contribué
à cette extension.

Contributeurs

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

[Traduisez « Log Out Shortcode » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/log-out-shortcode)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/log-out-shortcode/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/log-out-shortcode/), 
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/log-out-shortcode/)
par [RSS](https://plugins.trac.wordpress.org/log/log-out-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

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

 * Version initiale

## Méta

 *  Version **1.1.1**
 *  Dernière mise à jour **il y a 2 ans**
 *  Installations actives **3 000+**
 *  Version de WordPress ** 6.0 ou plus **
 *  Testé jusqu’à **6.6.5**
 *  Langue
 * [English (US)](https://wordpress.org/plugins/log-out-shortcode/)
 * Étiquettes
 * [link](https://fr.wordpress.org/plugins/tags/link/)[log out](https://fr.wordpress.org/plugins/tags/log-out/)
   [logout](https://fr.wordpress.org/plugins/tags/logout/)[shortcode](https://fr.wordpress.org/plugins/tags/shortcode/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/log-out-shortcode/advanced/)

## Évaluations

 5 sur 5 étoiles.

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

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

[Voir tous les avis](https://wordpress.org/support/plugin/log-out-shortcode/reviews/)

## Contributeurs

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

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/log-out-shortcode/)