This recipe is designed for a membership site that wants to quickly give members of a specific level access to all restricted content, without the need to individually update each post or run a Toolkit script.

You can use this recipe when you add a new membership level to your site or to offer a window of “unlimited access,” giving lower-tier members the experience of upgrading to your full suite of content.

Allow members to access all restricted content

The Code Recipe


Adding the recipe to your website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.

Update line 8 with the specific membership level IDs that should have access to ALL members-only posts on your site.

If you prefer, the Developer’s Toolkit Add On has a database script to duplicate a post’s membership requirements for a new level. For example, if you have content restricted for level ID 1 and later add a new membership level ID 2, you can use this script to perform a one-time copy of all the level 1 posts to also include level 2.

Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo