'Auto delete published posts after a specific number of days in wordpress
I am planning to start a newspaper based website (daily edition newspaper). I am building the site on WP.
Now, with demand of my clients, news items (WP posts in this case) need to be entirely deleted from the WP DB after 30 days. They do not even need an archive of this since they do not want to bloat the DB. Instead, they will keep a plan backup of the files/posts in their local system but want WP to complete remove those posts from the WP installation/DB.
Is is possible? If so, how to execute this on WP.
Solution 1:[1]
you can install WP-post expirator and setting it default to your number of days the post will be deleted after. it's work with WP-automatic too https://srd.wordpress.org/plugins/post-expirator/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Amin Safsafi |
