Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, regarding the link you shared above. You might be able to use the following snippet Check If Logged-in Member Has Access to a Post. Only active accounts can view the protected content.

    Let me know if the above helps you.

    Thank you

    Thread Starter atcrips

    (@atcrips)

    Thank you but I’ve found a different way in the meantime.

    I just redeclared the variables needed to check account status in the PHP file and it worked.

    $auth = SwpmAuth::get_instance();
    $status = $auth->get_account_state();
    if (!SwpmMemberUtils::is_member_logged_in() || $status !== 'active') {
    // do something is user isn't logged in or logged in but account status isn't "active"
    }
    • This reply was modified 5 years, 3 months ago by atcrips.
    Plugin Support mbrsolution

    (@mbrsolution)

    That is good to know. Also thank you for sharing your solution. I am sure this will help others 😉

    Enjoy the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Check account status’ is closed to new replies.