Title: Login or Logout Menu Item
Author: cartpauj
Published: <strong>20 de octubre de  2017</strong>
Last modified: 28 de mayo de  2026

---

Buscar plugins

![](https://ps.w.org/login-or-logout-menu-item/assets/banner-772x250.png?rev=2925042)

![](https://ps.w.org/login-or-logout-menu-item/assets/icon-256x256.png?rev=2925042)

# Login or Logout Menu Item

 Por [cartpauj](https://profiles.wordpress.org/cartpauj/)

[Descargar](https://downloads.wordpress.org/plugin/login-or-logout-menu-item.1.3.2.zip)

 * [Detalles](https://es-ar.wordpress.org/plugins/login-or-logout-menu-item/#description)
 * [Valoraciones](https://es-ar.wordpress.org/plugins/login-or-logout-menu-item/#reviews)
 *  [Instalación](https://es-ar.wordpress.org/plugins/login-or-logout-menu-item/#installation)
 * [Desarrollo](https://es-ar.wordpress.org/plugins/login-or-logout-menu-item/#developers)

 [Soporte](https://wordpress.org/support/plugin/login-or-logout-menu-item/)

## Descripción

With this plugin you can easily add a dynamic login/logout menu item to any menu
on your WordPress site. The menu item will change based on whether the current user
is logged in or logged out. You can also set a specific login page url, login redirect
url and a logout redirect url.

_Thanks to Juliobox for his prior efforts on the BAW Login/Logout Menu plugin which
this is derived from_

### CONFIGURE SETTINGS

After installing and activating the plugin, you can find the settings in your dashboard
under: `Settings > Login or Logout`

**Login Page URL** – This should be the URL to the page where your users will login
at. For most wordpress sites this will be `/wp-login.php` but if you’re using a 
membership plugin like MemberPress, it might be something like `/login/` instead.

**Login Redirect URL** – This is the URL you would like your users to be redirected
to after they’ve successfully logged in. You can set it to `/` to take them to the
home page after logging in. If you’re using a membership plugin like MemberPress,
you might want to use `/account/` instead. NOTE: Some plugins may override this 
if they are configured to redirect your users somewhere else during login.

**Logout Redirect URL** – This is the URL you would like your users to be redirected
to after they click the Logout link from this menu item. Use a `/` to redirect them
to the home page, or you might want to redirect them back to the login page at `/
login/` or `/wp-login.php` etc.

### ADD ITEM TO MENU

In your dashboard visit `Appearance > Menus`.

Then at the top right of that page click the `Screen Options` button and ensure 
that `Login/Logout` checkbox is checked.

Then select a menu to edit, or create a new menu if you don’t already have one.

In the left sidebar find `Login/Logout` and click the checkbox next to `Login|Logout`
and then click `Add to Menu`.

You can now drag the menu item wherever you’d like it to appear in your menu. The`
URL` in the menu settings must be left at `#lolmiloginout#` but you can change the`
Navigation Label` if you’d like it to say something else. Just ensure that the `
|` is there in the label separating the two words.

Now save your menu. That’s it!

### BLOCK EDITOR (NAVIGATION BLOCK)

If you’re using the block editor’s Navigation block:

 1. Add or edit a Navigation block on your page or in the Site Editor
 2. Click the (+) to add a new link
 3. In the search field, type “login” or “logout”
 4. Select “Login|Logout” from the suggestions
 5. The link will automatically show “Login” to logged-out users and “Logout” to logged-
    in users

You can also manually type `#lolmiloginout#` as the URL if you prefer.

### Troubleshooting

**After logging in, menu still shows “Login” or Vice-Versa** – This is most commonly
caused by caching. If you’re using a caching solution such as Cloudflare, WPRocket,
or others, be sure that caching is disabled for logged in users, and disable browser
caching options as well.

**Login is redirecting users somewhere other than my settings** – Many times other
plugins will have their own login redirect handling which overrides this plugin’s,
such as MemberPress for example. In this case, the other plugins will need to be
configured to redirect the user where you’d like them to go.

## Capturas

[⌊Login or Logout Menu Item⌉⌊Login or Logout Menu Item⌉[

Login or Logout Menu Item

[⌊Login or Logout Menu Item - Settings⌉⌊Login or Logout Menu Item - Settings⌉[

Login or Logout Menu Item – Settings

## Instalación

 1. Download a .zip of this plugin file
 2. Go to your WordPress Dashboard -> Plugins page
 3. Click “Add New” -> “Upload”
 4. Upload the .zip of this plugin and activate it
 5. For usage instructions, see `Details` tab and screenshots

## Reseñas

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

### 󠀁[No support for PHP version 8.0 or later](https://wordpress.org/support/topic/no-support-for-php-version-8-0-or-later/)󠁿

 [henhed](https://profiles.wordpress.org/henhed/) 5 de enero de 2026 3 respuestas

The plugin don't seem to work from PHP version 8.0 and above.

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

### 󠀁[Worked Easily and Flawlessly](https://wordpress.org/support/topic/worked-easily-and-flawlessly/)󠁿

 [Lockhart](https://profiles.wordpress.org/muldari/) 12 de julio de 2025

I don't know why this isn't a standard with Wordpress, but am so grateful this developer
saw the need and created a functioning, lightweight, easy to use option! Highly 
recommend this.

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

### 󠀁[It’s incredible…](https://wordpress.org/support/topic/its-incredible-4/)󠁿

 [Pineapple is DISGUSTING on Pizza](https://profiles.wordpress.org/magictrashcan/)
17 de abril de 2024

… that WP doesn't offer this functionality on its own 😀 Great plugin, works like
a charm.

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

### 󠀁[Fantastic! Thank you.](https://wordpress.org/support/topic/fantastic-thank-you-8/)󠁿

 [melbatoast4](https://profiles.wordpress.org/melbatoast4/) 14 de septiembre de 
2022

Thank you so much for this plugin. Elegantly does what I needed two plugins to do
before, with less setup and better functionality.

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

### 󠀁[Damn cool](https://wordpress.org/support/topic/damn-cool/)󠁿

 [yannickburky](https://profiles.wordpress.org/yannickburky/) 18 de enero de 2022

Thanks for this piece of software

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

### 󠀁[Does what WordPress should already do](https://wordpress.org/support/topic/does-what-wordpress-should-already-do/)󠁿

 [ChickenWhisperer](https://profiles.wordpress.org/thispluginisbuggyashell/) 17 
de octubre de 2021

thanks!

 [ Leer todas las 23 reseñas ](https://wordpress.org/support/plugin/login-or-logout-menu-item/reviews/)

## Colaboradores y desarrolladores

“Login or Logout Menu Item” es un software de código abierto. Las siguientes personas
han colaborado con este plugin.

Colaboradores

 *   [ cartpauj ](https://profiles.wordpress.org/cartpauj/)

[Traduce “Login or Logout Menu Item” a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/login-or-logout-menu-item)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/login-or-logout-menu-item/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/login-or-logout-menu-item/),
o suscríbete al [log de desarrollo](https://plugins.trac.wordpress.org/log/login-or-logout-menu-item/)
por [RSS](https://plugins.trac.wordpress.org/log/login-or-logout-menu-item/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 1.3.2

 * Ensure WP 7.0 Compatibility

#### 1.3.1

 * Removed translations in-plugin, these can be managed at wordpress.org

#### 1.3.0

 * Added support for the block editor Navigation block
 * Search “login” or “logout” in the Navigation block link picker to add the dynamic
   link

#### 1.2.3

 * Small tweaks to help avoid hosting blocks
 * Fix nonce validation

#### 1.2.2

 * Bump WP Compatibility

#### 1.2.1

 * Fixed error when saving options on some web-host’s

#### 1.2.0

 * Fixed save options security vulnerability

#### 1.1.1

 * Fixed – Do not redirect Administrator users when logging in

#### 1.1.0

 * Added a settings page
 * Added setting for login page URL
 * Added setting for login redirect URL
 * Added setting for logout redirect URL

#### 1.0.0

 * First Release

## Meta

 *  Versión **1.3.2**
 *  Última actualización **hace 5 meses**
 *  Instalaciones activas **20.000+**
 *  Versión de WordPress ** 6.0 o superior **
 *  Testeado hasta **7.0.7**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/login-or-logout-menu-item/)
 * Etiquetas:
 * [Dynamic](https://es-ar.wordpress.org/plugins/tags/dynamic/)[login](https://es-ar.wordpress.org/plugins/tags/login/)
   [logout](https://es-ar.wordpress.org/plugins/tags/logout/)[menu](https://es-ar.wordpress.org/plugins/tags/menu/)
   [menu item](https://es-ar.wordpress.org/plugins/tags/menu-item/)
 *  [Vista avanzada](https://es-ar.wordpress.org/plugins/login-or-logout-menu-item/advanced/)

## Valoraciones

 4.8 de 5 estrellas.

 *  [  22 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/login-or-logout-menu-item/reviews/?filter=5)
 *  [  0 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/login-or-logout-menu-item/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/login-or-logout-menu-item/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/login-or-logout-menu-item/reviews/?filter=2)
 *  [  1 valoración de 1 estrellas     ](https://wordpress.org/support/plugin/login-or-logout-menu-item/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/login-or-logout-menu-item/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/login-or-logout-menu-item/reviews/)

## Colaboradores

 *   [ cartpauj ](https://profiles.wordpress.org/cartpauj/)

## Soporte

Problemas resueltos en los últimos dos meses:

     1 de 1

 [Ver el foro de asistencia](https://wordpress.org/support/plugin/login-or-logout-menu-item/)