WordPress core empties the trash after 30 days but only via EMPTY_TRASH_DAYS constant — which is all-or-nothing and not per-post-type. This gives you per-post-type…
Automatically change published posts to draft status when a custom expiration date is reached. Useful for news websites, event listings, job postings, offers, and…