Answers for "get if user is already logged in php wordpress"

PHP
3

if user logged in wordpress

if ( is_user_logged_in() ) {
   // your code for logged in user 
} else {
   // your code for logged out user 
}
Posted by: Guest on September-11-2020
0

php redirect if not logged in

if(!isset($_SESSION['login'])){ //if login in session is not set
    header("Location: http://www.example.com/login.php");
}
Posted by: Guest on December-28-2020

Code answers related to "get if user is already logged in php wordpress"

Browse Popular Code Answers by Language