in WordPress

Automatically Empty Trash Posts In Wordpress

Trash Do you create posts just to delete them half way when you realise their not good enough to be put up on your site? Lots of people create a post and end up deleting it. After a while your trashed posts folder could fill up, which can have performance problems on your Wordpress site. You need to keep going back and emptying your trashed posts but what if you keep forgetting you reach the same problem. Let Wordpress automatically empty your trash posts. Copy the following snippet into your Wordpress config file to empty your trash every week.

define('EMPTY_TRASH_DAYS', 7 ); 

Subscribe To The Weekly Newsletter

Get weekly updates to your email