Forum Academy Marketplace Showcase Pricing Features

Limiting the duration of a post

Hi everybody!

I want to limit the duration of a post made by an user, according to his or her plan. For exemple, if you publish for free, the post leasts for 30 days, but if you pay the post leasts according to your payment.

Is there a way I can achieve this functionality?

Thanks in advance for your help

Use a field to record the state e.g. published, and a field to record the state date. Then use a scheduled API workflow to change the state e.g. after however long and update the state field to expired and set the new date.

You could run the API every day and update posts which have expired.

I think it depends on how you display the posts. If it’s in a repeating group you can set a filter to check the post creation date + 30 days and if they have paid to display it or not.