The key element in logic used to display one thing or another based on login status is the is_user_logged_in() function.
This function will return true if the user is logged in, otherwise false.
if ( is_user_logged_in() ) {
// do this if logged in
} else {
// do this if not logged in
}
Thank you, I appreciate that. I did find it yesterday in your tips & tricks section. However, I realized this morning that there is a CRITICAL follow up issue.
**Once a user logs in, how do I display their specific page customization?**
What I’m trying to create is a page where many different users will have access to the same library of documents. HOWEVER, we need the page to display a company logo specific to the user (so it looks branded to them).
As I see it, I can do this two ways. I can either create:
1. one page that changes the header logo based on the login OR
2. many copies of the same pages, each with a different header logo and redirect users based on their login
Is there any solution within your application for either of these options?