where do i place this code? force login

Messages
65
Reaction score
0
Points
6
// Require login for site
get_currentuserinfo();
global $user_ID;
if ($user_ID == ”) {
header(‘Location: /wp-login.php’); exit();
}
 

ace_case

Member
Messages
217
Reaction score
11
Points
18
This is not a hosting support question, but your code seems to be wrong. If this is still about the opencart issue, try using
PHP:
if(!$logged){
//redirect code
exit();
}
 

Anna

I am just me
Staff member
Messages
11,430
Reaction score
548
Points
113
Moved to proper forum.
 
Top