Ga naar de inhoud
WordPress.org

Nederlands

  • Thema’s
  • Plugins
  • Nieuws
    • Documentatie
    • Forums
  • Over
    • Vertaalproces
    • Stijlgids
    • Onze community
    • Meetups
    • WordCamps
  • Contact
  • WordPress downloaden
WordPress downloaden
WordPress.org

Plugin Directory

Login or Logout Menu Item

  • Dien een plugin in
  • Mijn favorieten
  • Login
  • Dien een plugin in
  • Mijn favorieten
  • Login

Login or Logout Menu Item

Door cartpauj
Download
  • Details
  • Beoordelingen
  • Installatie
  • Ontwikkeling
Ondersteuning

Beschrijving

Met deze plugin kun je eenvoudig een dynamisch login/logout menu item toevoegen aan elk menu op je WordPress site. Het menu item zal veranderen op basis van of de huidige gebruiker is ingelogd of uitgelogd. Je kunt ook een specifieke login pagina url, login redirect url en een logout redirect url instellen.

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.

Schermafbeeldingen

  • Login or Logout Menu Item
  • Login or Logout Menu Item – instellingen

Installatie

  1. Download een .zip bestand van deze plugin
  2. Ga naar je WordPress dashboard -> plugins pagina
  3. Klik op “Nieuw toevoegen” -> “Uploaden”
  4. Upload het .zip bestand van deze plugin en activeer het
  5. For usage instructions, see Details tab and screenshots

Beoordelingen

No support for PHP version 8.0 or later

henhed 5 januari 2026 3 reacties
The plugin don’t seem to work from PHP version 8.0 and above.

Worked Easily and Flawlessly

Lockhart 12 juli 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.

It’s incredible…

MTC 17 april 2024
… that WP doesn’t offer this functionality on its own 😀 Great plugin, works like a charm.

Fantastic! Thank you.

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

Damn cool

yannickburky 18 januari 2022
Thanks for this piece of software

Does what WordPress should already do

ChickenWhisperer 17 oktober 2021
thanks!
Lees alle 23 beoordelingen

Bijdragers & ontwikkelaars

“Login or Logout Menu Item” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers
  • cartpauj

Vertaal “Login or Logout Menu Item” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

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 compatibiliteit

1.2.1

  • Fout bij het opslaan van opties op sommige web-hosts opgelost

1.2.0

  • Het beveiligingslek in de opslaanopties is verholpen

1.1.1

  • Opgelost – beheerders niet omleiden bij inloggen

1.1.0

  • Een instellingen pagina toegevoegd
  • Instelling voor inlogpagina URL toegevoegd
  • Instelling toegevoegd voor login redirect URL
  • Instelling toegevoegd voor URL om uit te loggen

1.0.0

  • Eerste release

Meta

  • Versie 1.3.1
  • Laatst geüpdatet 2 weken geleden
  • Actieve installaties 20.000+
  • WordPress versie 6.0 of nieuwer
  • Getest t/m 6.9.4
  • Taal
    English (US)
  • Tags
    Dynamicloginlogoutmenumenu item
  • Geavanceerde weergave

Waarderingen

4.8 van 5 sterren.
  • 22 5 sterren beoordelingen 5 sterren 22
  • 0 4 sterren beoordelingen 4 sterren 0
  • 0 3 sterren beoordelingen 3 sterren 0
  • 0 2 sterren beoordelingen 2 sterren 0
  • 1 1 ster beoordeling 1 ster 1

Your review

Bekijk alle beoordelingen

Bijdragers

  • cartpauj

Ondersteuning

Iets te melden? Hulp nodig?

Het supportforum bekijken

  • Over
  • Nieuws
  • Hosting
  • Privacy
  • Showcase
  • Thema's
  • Plugins
  • Patronen
  • Leren
  • Ondersteuning
  • Ontwikkelaars
  • WordPress.tv ↗
  • Raak betrokken
  • Evenementen
  • Doneren ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Nederlands

  • Bezoek ons X (voorheen Twitter) account
  • Bezoek ons Bluesky account
  • Bezoek ons Mastodon account
  • Bezoek ons Threads account
  • Onze Facebook pagina bezoeken
  • Bezoek ons Instagram account
  • Bezoek ons LinkedIn account
  • Bezoek ons TikTok account
  • Bezoek ons YouTube kanaal
  • Bezoek ons Tumblr account
Code is poëzie.
The WordPress® trademark is the intellectual property of the WordPress Foundation.