Title: Log Out Shortcode
Author: Tectalic
Published: <strong>اگست 3, 2014</strong>
Last modified: جولائی 17, 2024

---

پلگ انز تلاش کریں

یہ پلگ ان **ورڈپریس کے تازہ ترین 3 ریلیزوں کے ساتھ ٹیسٹ نہیں کیا گیا ہے**۔ اب یہ
برقرار نہیں رکھا جا سکتا یا معاونت نہیں کی جا سکتی اور اس کو ورڈپریس کے تازہ ترین
ورژنز کے ساتھ استعمال کیے جانے پر مطابقت کے مسائل ہو سکتے ہیں۔

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

# Log Out Shortcode

 منجانب [Tectalic](https://profiles.wordpress.org/om4/)

[ڈاؤن لوڈ کریں](https://downloads.wordpress.org/plugin/log-out-shortcode.1.1.2.zip)

 * [تفصیلات](https://ur.wordpress.org/plugins/log-out-shortcode/#description)
 * [جائزے](https://ur.wordpress.org/plugins/log-out-shortcode/#reviews)
 *  [انسٹالیشن](https://ur.wordpress.org/plugins/log-out-shortcode/#installation)
 * [ڈیولپمنٹ](https://ur.wordpress.org/plugins/log-out-shortcode/#developers)

 [معاونت](https://wordpress.org/support/plugin/log-out-shortcode/)

## تفصیل

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

## انسٹالیشن

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

## عمومی سوالات

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

## جائزے

![](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, 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, 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, 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, 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/) نومبر 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/) فروری 17, 2017

Thanks for code

 [ تمام 12 جائزے پڑھیں ](https://wordpress.org/support/plugin/log-out-shortcode/reviews/)

## شراکت دار اور ڈیویلپرز

“Log Out Shortcode” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ
لیا:

شراکت دار

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

[“Log Out Shortcode” کا اپنی زبان میں ترجمہ کریں۔](https://translate.wordpress.org/projects/wp-plugins/log-out-shortcode)

### ڈویلپمینٹ میں دلچسپی ہے؟

[کوڈ براؤز کریں](https://plugins.trac.wordpress.org/browser/log-out-shortcode/)،
[ایس این وی ریپوزیٹری](https://plugins.svn.wordpress.org/log-out-shortcode/) کو 
چیک کریں یا [ڈویلپمینٹ لاگ](https://plugins.trac.wordpress.org/log/log-out-shortcode/)
کو سبسکرائب کریں بذریعہ [آر ایس ایس](https://plugins.trac.wordpress.org/log/log-out-shortcode/?limit=100&mode=stop_on_copy&format=rss)۔

## چینج لاگ

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

## میٹا

 *  Version **1.1.1**
 *  Last updated **2 سال پہلے**
 *  Active installations **3,000+**
 *  WordPress version ** 6.0 یا اس سے جدید **
 *  Tested up to **6.6.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/log-out-shortcode/)
 * Tags
 * [link](https://ur.wordpress.org/plugins/tags/link/)[log out](https://ur.wordpress.org/plugins/tags/log-out/)
   [logout](https://ur.wordpress.org/plugins/tags/logout/)[shortcode](https://ur.wordpress.org/plugins/tags/shortcode/)
 *  [اعلی درجے کا منظر](https://ur.wordpress.org/plugins/log-out-shortcode/advanced/)

## درجہ بندیاں

 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)

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

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

## شراکت دار

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

## معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

 [معاونتی فورم دیکھیں](https://wordpress.org/support/plugin/log-out-shortcode/)