Àpèjúwe
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 Ìtumọ̀ Yorùbá: – 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Ìtumọ̀ Yorùbá: ’re using a membership plugin like MemberPress, it might be something like /login/ instead.
Login Redirect URL Ìtumọ̀ Yorùbá: – This is the URL you would like your users to be redirected to after theyÌtumọ̀ Yorùbá: ’ve successfully logged in. You can set it to / to take them to the home page after logging in. If youÌtumọ̀ Yorùbá: ’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 Ìtumọ̀ Yorùbá: – 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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’s it!
BLOCK EDITOR (NAVIGATION BLOCK)
If youÌtumọ̀ Yorùbá: ’re using the block editorÌtumọ̀ Yorùbá: ’s Navigation block:
- Add or edit a Navigation block on your page or in the Site Editor
- Click the (+) to add a new link
- In the search field, type “login” or “logout”
- Select “Login|Logout” from the suggestions
- 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 Ìtumọ̀ Yorùbá: – This is most commonly caused by caching. If youÌtumọ̀ Yorùbá: ’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 Ìtumọ̀ Yorùbá: – Many times other plugins will have their own login redirect handling which overrides this pluginÌtumọ̀ Yorùbá: ’s, such as MemberPress for example. In this case, the other plugins will need to be configured to redirect the user where youÌtumọ̀ Yorùbá: ’d like them to go.
Ìgbéwọlẹ̀
- Download a .zip of this plugin file
- Go to your WordPress Dashboard -> Plugins page
- Click “Add New” -> “Upload”
- Upload the .zip of this plugin and activate it
- For usage instructions, see
Detailstab and screenshots
Àwọn àgbéyẹ̀wò
Àwọn Olùkópa & Olùgbéejáde
“Login or Logout Menu Item” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.
Àwọn OlùkópaTúmọ̀ “Login or Logout Menu Item” sí èdè rẹ.
Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?
Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.
Àkọsílẹ̀ àwọn àyípadà
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Ìtumọ̀ Yorùbá: ’s
1.2.0
- Fixed save options security vulnerability
1.1.1
- Fixed Ìtumọ̀ Yorùbá: – 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


