Hi,
I’d like to restrict the entire calendar to logged-in users only. I know I can use something like this code to check if a user is logged in:
$user = wp_get_current_user();
if (isset($user->ID) and $user->ID > 0) return;
But how can I then use that to restrict the Calendar? Ideally I want to redirect all non-logged in users to the login page.
Hi Barry,
Thanks, I did see that post but I want to completely redirect any non logged-in user. A PHP header location redirect won’t work here, so I was wondering if there’s any other way of doing this.
Thanks,
James