• Resolved theitguy

    (@theitguy)


    Hi All,

    Since a week now I’ve got the setup of paid membership pro + woocommerce. Everything was working fine and easy to setup untill I’ve noticed my membership was expired but I still had access to all restricted pages. Tried this on a few accounts on my website and all act the same.

    Even when the membership is any time over due like today is the 5th and it lasted till the 3th they can see the restricted page(s).

    Is there any PHP code to fix this? if ( certain level ) and Active? I have found php code to restrict on level, now i need the active one.

    Or any other solution!

    Greetings,

    Fellow WordPresser/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    Thank you for getting in touch with us!

    Can you please confirm that the members are indeed expiring? You should be able to check this by viewing the Members List:

    WP Dashboard > Memberships > Members List

    If they are not expiring then it could be a problem with the Cronjob not firing.

    Let me know,
    Trav

    @trav

    Hello,

    The cron job ran for me, and it did put expired members to ‘expire’ status. But there seem to be no function to handle these members. That might be the reason causes the problem

    Plugin Author Andrew Lima

    (@andrewza)

    To add onto Trav’s response.

    wp_cron is not the most stable method in WordPress and sometimes doesn’t fire on low traffic sites.

    As mentioned you are able to run the cron manually using a plugin like WP Crontrol (or similar).

    You are able to setup a server level cron within your host settings which will run the cron daily regardless of the factors wp_cron uses but requires a lot more knowledge and some code.

    However here is a great article in setting up a cron on the server level – https://tommcfarlin.com/wordpress-cron-jobs/

    Hope this helps! 🙂

    Thanks for checking that for me!

    @andrewza helped a user in this thread who was experiencing the same problem, would you mind having a look and letting me know if this helps you?

    https://wordpress.org/support/topic/expired-members-still-get-access-to-membership-protected-content/

    Thanks!
    Trav

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

The topic ‘Restricted Access not Restricted!’ is closed to new replies.