Dynamic Login box for WP
-
I’ve just hacked together some code to create a dynamic login box in the menu on WP.
When the user is logged out, it displays the login form complete with “register” and “lost password” links.
Once the user is logged in, it displays “Welcome, (their name)!” and a menu.
The menu can contain generic items such as links to profiles/etc, but then the code can be modified to display additional links depending on what access level the user has.
Some knowledge of PHP is required.
You can see it working on my blog at https://www.wellardsworld.com/
The code is at https://www.wellardsworld.com/code/wp-user.phps
Suggestions, comments and improvements all welcomed!
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Dynamic Login box for WP’ is closed to new replies.