Do you want to delete and empty WordPress Trash daily ? We delete many spam WordPress comments everyday and WordPress Trash fills up really fast.

Does WordPress empty Trash ever? WordPress will permanently delete posts, pages or comments in the trash after 30 days automatically. So dont worry about accumulating thousands of Trash files.

How to empty WordPress Trash Daily

You can do it when to empty the WordPress trash by adding this code to the wp-config.php file in your WordPress root directory.

define('EMPTY_TRASH_DAYS', 1 );

The 1 in the code signifies you want to empty the trash everyday. if you want to delete or empty trash for 5 days for example replace the value 1. and if set with 0 the trash functionality will be disabled and the ‘Delete Permanently’ button will appear instead of ‘Trash’ button and then you can delete posts and comments permanently without any alert. Remember to always backup wp-config.php file before editing it or your blog function may be disrupted.

Now you never click Empty Trash ever again.

I am Susan Hannan from Exams Key; it gives 100% NS0-502 exam exams. Let’s take benefit of ISEB-PM1 exam Exams material efficiently and get guaranteed success. Check out free demo of all certifications Exam.

Related Posts Plugin for WordPress, Blogger...