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](https://www.paidmembershipspro.com/wp-content/uploads/2022/08/pmpro-generic-code-recipe-banner-1024x576.jpg)
The Code Recipe
Copy and paste this code recipe into a helper PMPro Customizations plugin. Update line 20 with your specific timeframe.