In the previous chapter, we looked at the creation of web application content using custom post types and managing various custom post type related features. We can now move into conditionally restricting the content created in previous chapters. Content is the most important aspect of any application. Providing the same features to all users limits your application from gaining exposure as well as causing management nightmares. Therefore, we need at least two user types to manage the application features and use the application features.
WordPress doesn't provide built-in features for restricting content and hence we have to develop everything from scratch or use an existing content restriction plugin. In this chapter, we will be implementing some of the common restriction types while discussing the process for implementing advanced restrictions.
On the one hand...