GET YOUR WORDPRESS TRASH FOLDER EMPTY AUTOMATICALLY


Remove WordPress TrashTo 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.

  1. Login to your FTP and Download wp-config.php file and edit it.
  2. Add below code in it
  3. define(‘EMPTY_TRASH_DAYS’, 5 );

  4. Save the file and upload it back.

In the above command, the digit 5 states that for every 5 days, the trash need to be deleted. Replace the number with the number of days you desire.

Note: You can also open the wp-config.php file direct by logging into your control panel and edit it.

Categories: , , ,
Comments
0 Comments

0 comments:

Post a Comment

 

Alexa Rank

Our Recent Visitors