If you’re looking for a way to make new posts of any kind (cpts) expire at a certain date, meaning they will go to the trash or convert to draft at a certain date, you have a solution by the Crocoblock team.
You’ll need the JetEngine plugin by Crocoblock, and then you’ll need to activate the Expiration Date module within the JetEngine settings.
After installing the module you’ll be able to add an expiration date to posts created by JetFormBuilder, which is nice but not always what we need, and we also want to be able to control the expiration date, which doesn’t come as a default option.
In order to control and add expiration dates without JetFormBuidler, you’ll want to add a snippet to your Child Theme’s Function.php file so you can edit and add Expiration details without using JetFormBuilder.
Get the snippet from here (don’t copy the <php, just the code after it, into your Function.php child theme’s file.)