I have a few custom post types which i don't want any contribute to view or touch. However, the default settings allows contributes to see these in their admin. How do i disallow contributes access to certain post types?
migrated from stackoverflow.com Sep 15 '11 at 22:11
When you register your post type you can show/hide the UI in the arguments. I would approach it this way:
This will maintain the custom post type architecture while hiding the UI for those who are not administrators. For more information about Wordpress User Capabilities see this page: http://codex.wordpress.org/Roles_and_Capabilities