SyntaxFix
Write A Post
Hire A Developer
Questions
Example: Display different output depending on whether the user is logged in or not.
<?php if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; } else { echo 'Welcome, visitor!'; } ?>