When the trash feature is enabled, the deleted posts are moved to trash and stored there for 30 days. And there is a schedule/wp_cron event that is responsible for removing these posts permanently after that time.
Is there any easy way to change that time?
When the trash feature is enabled, the deleted posts are moved to trash and stored there for 30 days. And there is a schedule/wp_cron event that is responsible for removing these posts permanently after that time.
Is there any easy way to change that time?
Share Improve this question edited Feb 12, 2019 at 7:58 Krzysiek Dróżdż asked Feb 6, 2019 at 18:40 Krzysiek DróżdżKrzysiek Dróżdż 25.6k9 gold badges53 silver badges74 bronze badges1 Answer
Reset to default 5You can change that in wp-config
(https://codex.wordpress/Editing_wp-config.php#Empty_Trash):
define( 'EMPTY_TRASH_DAYS', 1 ); // Integer is the amount of days