Im trying to create a redirect if the user is not logged in and i am havin trouble
Here is the method im using
<?php
if ( is_user_logged_in() ) {
?>
/*My Content*/
<?php
} else {
echo '<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.*****.com/non-member.php">';
}
?>
This is working fine but it is delayed and im able to see the page for a few seconds before it redirects.
What i would like to do is something like this.
<?php
if ( is_user_logged_in() ) {
/*IGNORE NEXT STATEMENT*/
} else {
echo '<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.****.com/non-member.php">';
}
?>
Im not sure if this is possable but i would assume there is a mehod out there somehow.