Hi,
I need to place logout link in the header of all pages when a user is logged in. What would be the php code to test if a user is logged in display the logout link and the associated link/action to log the user out.
thanks
Hi,
I need to place logout link in the header of all pages when a user is logged in. What would be the php code to test if a user is logged in display the logout link and the associated link/action to log the user out.
thanks
http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
You simply add ?event=logout to your site URL to make the logout link. For example the following would be a logout link:
http://www.example.com/?event=logoutIs there any way to make that display "Log In" for logged out users?
I am not sure I understand what you are really trying to do.
You must log in to post.