How To Set WordPress To Automatically Empty The Trash ?

You can make WordPress automatically empty the trash bin within the given interval of time. You can also define the number of days between WordPress trash dumps.

Open your wp-config.php file present your site’s root directory and add the following code just above the Happy Blogging line :

define(‘EMPTY_TRASH_DAYS’, 10 );

In the above code snippet, the number (10) refers to the number of days for trash dump.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.