The most frustrating problem every blog owner faces is "SPAM comments". Dealing with numerous SPAM comments is really a tedious job. There are some plugins like "Delete All Pending Comments" which helps in deleting all comments in bulk. And the deleted comments will be moved to Trash folder. It's again a big problem to go to Trash folder and delete those manually.
To speed up the task and reduce personal intervention, there is a small hack which allows us to empty the trash automatically without having to do it manually each time.
- Login to your FTP and Download wp-config.php file and edit it.
- Add below code in it
- Save the file and upload it back.
define('EMPTY_TRASH_DAYS', 5 );
Note: You can also open the wp-config.php file direct by logging into your control panel and edit it.



wow, great tip
ReplyDeleteBut what if I hit the trash button for all the post by mistake. Will that be deleted or will that stay?
ReplyDelete