PHP Code Snippet to Check If a Member/User is Logged In
The code snippet below will determine if members are currently logged into their accounts on the website.
<?php
// Check if the user is not logged in
if (user::isUserLogged($_COOKIE)) {
?>
TEXT TO DISPLAY WHEN MEMBER LOGGED IN
<?php } ?>
Replace "TEXT TO DISPLAY WHEN MEMBER LOGGED IN" with your desired content. This content will be displayed only when a user is logged in.