Post Types – Posts, Pages, Blog, Archives
This Access Condition prevents unauthorized users from being able to visit:
- individual posts, pages, custom post types
- post type archives, e.g. your Blog page and WooCommerce Shop page.
Good to know: This Access Condition will not hide items from archive pages, search results, widgets, custom lists, or the WP REST API. Hide content completely with the Visibility Control add-on.
Example – Restrict select Products
Only authorized users will be able to visit the pages for Product 1 or Product 2.
Example – Restrict Blog or Post Type Archive
Only authorized users will be able to visit the Blog page (post type archive for posts).
Good to know: This approach will work for all special pages acting as post type archives, for example the WooCommerce Shop page.