Thank you so much. I read the tutorial and I think It’ll be easier for me to restrict access to that post category by editing the Membership Level under Memberships and check off categories. My issue is that I have 2000 categories and I can only check 1000 categories , every time I check more than those 1000 the rest of categories never get saved. I tried to increase memory limit to no avail. Any idea how to accomplish this task?
Thank you.
I would recommend in rather using a custom function to query these 1000+ categories and use that as a reference.
You may use the pmpro_has_membership_access_filter – https://www.paidmembershipspro.com/hook/pmpro_has_membership_access_filter/
2000 categories on a site is a large amount, and there may be limitations in place when saving this when using query parameters etc.
If you need help with customizing this process, please reach out to a local WordPress developer.