Enabling restrictions on WordPress core features
Generally, posts and pages are the common content used for applying restrictions in applications. However, it's important to understand restrictions on other core WordPress features as we need to integrate all the features in order to build a quality application. So, we are going to look at some of the core WordPress features and techniques for applying restrictions.
Restrictions on posts
We have already discussed several content restriction techniques on posts. Apart from these restrictions, we can also implement global post restrictions and post category restrictions:
- Global post restrictions: We can restrict all posts or all posts of a single custom post type at once without applying restrictions on individual posts
- Category restrictions: We can restrict all posts from a given category at once
Both types of restrictions can be managed with the template_redirect
action we used in previous sections.
Restrictions on searches
The built-in search features...