I have a PHP page in which I want to display a protected block to logged in users with Product 1 and Product 2. I want to show "Please join to view" to anyone else. How do I code this in PHP? I am using Amember v3 latest.
You can use session variables. if($_SESSION[_amember_user]){ // User is logged in }else{ // User is not logged in. } if($_SESSION[_amember_user][data][status][1] || $_SESSION[_amember_user][data][status][2]){ // User have product 1 or product 2 }