Allow public access to your members-only content for a set timeframe. The example below allows all members-only posts to be viewed for 24 hours, after which membership will be required to view.

This recipe is a variation of our previous technique to hide old posts from new members.

Banner for Advanced Code Recipe Tutorial for Paid Memberships Pro

The Code Recipe

Copy and paste this code recipe into a helper PMPro Customizations plugin. Update line 20 with your specific timeframe.

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