Title: Restrict access by Custom Post Type?
Last modified: August 30, 2016

---

# Restrict access by Custom Post Type?

 *  [hyp0xia](https://wordpress.org/support/users/hyp0xia/)
 * (@hyp0xia)
 * [11 years ago](https://wordpress.org/support/topic/restrict-access-by-custom-post-type/)
 * Hello,
 * I am looking to restrict access by custom post type. Restricting access on a 
   post-by-post level will soon become difficult to manage.
 * Is there a way to easily restrict access to every post created from a specific
   custom post type? If so, can this be done with a snippet or a plugin/extension
   that currently exists?
 * [https://wordpress.org/plugins/groups/](https://wordpress.org/plugins/groups/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [hyp0xia](https://wordpress.org/support/users/hyp0xia/)
 * (@hyp0xia)
 * [11 years ago](https://wordpress.org/support/topic/restrict-access-by-custom-post-type/#post-6412464)
 * Just an update here. I posted the same question as a comment on the plugin website
   and another user presented this code snippet to restrict access by post type.
 * Though I have not tried it yet, it looks promising and I’m excited to see if 
   it works as advertised.
 * link: [http://eggemplo.com/blog/default-posts-restriction/](http://eggemplo.com/blog/default-posts-restriction/)
   
   note: you need to change the ‘Premium’ capability and “posts” to your custom 
   post type.

Viewing 1 replies (of 1 total)

The topic ‘Restrict access by Custom Post Type?’ is closed to new replies.

 * ![](https://ps.w.org/groups/assets/icon-256x256.png?rev=983146)
 * [Groups - Memberships and Access Control](https://wordpress.org/plugins/groups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/groups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/groups/)
 * [Active Topics](https://wordpress.org/support/plugin/groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/groups/reviews/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [restrict](https://wordpress.org/support/topic-tag/restrict/)

 * 1 reply
 * 1 participant
 * Last reply from: [hyp0xia](https://wordpress.org/support/users/hyp0xia/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/restrict-access-by-custom-post-type/#post-6412464)
 * Status: not resolved