PHP Code Snippet to Check If a Member/User is Logged In
Link: https://support.brilliantdirectories.com/support/solutions/articles/12000095724
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.