OscarminiOscarmini
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
Facebook Twitter Instagram
OscarminiOscarmini
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
OscarminiOscarmini
Home»Web Design Tips»Wordpress»How to empty trash automatically every specified number of days
Wordpress

How to empty trash automatically every specified number of days

Oscar FrankBy Oscar Frank1 Min Read
Share
Facebook Twitter LinkedIn WhatsApp Pinterest Email

If there are some things I must have wished to be automated while using my wordpress blog, this is surely one of them. WordPress is a nice CMS platform, and thus gives us the opportunity to toy around with the theme file. Here is a simple trick that can automate the process of emptying your trash post on a daily basis or any specified number of days you set it to

empty trash automatically

How to automatically empty trash on a daily basis

The trick to this is simple,
Locate your wp-config.php file of your wordpress blog which can be found in the root folder of your wordpress blog throgh your cPanel File Manager.

Edit this file and simply add this code in the very last line

define('EMPTY_TRASH_DAYS', 1);

Replace 1 in the code with a number you wish, it denotes the number of days. If left as 1 in the code above, the trash posts would automatically be emptied everyday.

I hope this WordPress Tip was useful.

programming webdesign Wordpress

Related Posts

Common Mistakes Newbie Developers Make and Solutions

March 23, 2021

WordPress Blog Hosting made easy with SeekaHost Blog Hosting Control Panel

December 4, 2020

7 Best Laptops For Coders In 2023

February 28, 2020
Add A Comment

Leave A Reply Cancel Reply

Recent Posts
  • 10 Insane TikTok Trends That Shook The Internet
  • 10 Tech Innovations that will Change the Way we Live & Work
  • Curacel, a Nigerian Insurtech Startup, Raises $3 Million
  • Google Redesigns and Upgrades Gboard Toolbar
  • Internet Explorer to be Permanently Disabled
Get Exclusive Tech Insights!
Oscarmini
Facebook Twitter Instagram YouTube
© 2023 Oscarmini Co. Designed by illBytes.

Type above and press Enter to search. Press Esc to cancel.