Best hook to use for checking permissions to view a page

[ad_1]

I’m trying to eliminate a huge (monthly subscription) membership plugin. All the features we need are taken care of, other than hiding pages based on permission.

I’m going to do 2 levels of protection, completely block if not allowed, or a redirect to a page about purchasing the permissions needed.

There are just so many hooks in WP, I’m stumped on the best one to use to go check first if the page is locked and then if the user has permissions.

For our use case, we only need to protect pages, but I wonder if there is something else I need to protect and not thinking about it. (ie feed outputs)

If anyone has suggestions for this, I’d be grateful.

Oh also, these pages are supplemental pages, ie, help pages/tutorials on how to use the main system members get to use (which is separate from WP)

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer