WordPress Snippet: Empty Trash Automatically
This tiny piece of code works wonders! It automatically empties your WordPress Site’s Trash Bin.
Add the below code to your wp-config.php file, remember to set the number of days according to your needs. This also helps in reducing the size of your database.
define('EMPTY_TRASH_DAYS', 5 );