You can test it on the playground here with PHP 8.3. It seems to work fine: https://playground.wordpress.net/?plugin=login-or-logout-menu-item&theme=twentytwelve
However, if your theme is Block Editor enabled, then it does not currently support that unfortunately.
Thread Starter
henhed
(@henhed)
Thank’s for clearifying. That’s way it don’t work. I’m using a theme that uses block editing.
@henhed I released vs 1.3.0 with support for 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
-
This reply was modified 1 month, 1 week ago by
cartpauj.