Restrict Custom Post Type
-
Hello,
Your plugin is amazing. I appreciate the tremendous effort and I left a great rating. I would like some help with restricting a post type. You have options for restricting posts, pages, and categories. But I would like to restrict a custom post type to a specific membership level. May you please help me with perhaps a function that I can insert in my functions.php file?
Let’s say the custom post is called “invoices” and the membership level I want to have access is called “Staff”. Could you provide a function that restricts access of the invoices post type to only Staff members?
I think it makes it a bit simpler, that all custom post type posts have a base in the permalink structure. So using the invoices post type the base would be of this sort: https://www.mywebsitename.com/invoices/%5Bpost name here]
- The topic ‘Restrict Custom Post Type’ is closed to new replies.