Working code for automatically empty WordPress trash

If you are using WordPress content management system (CMS) and you wish to keep your trash folder always clean then here is the code which will automatically done above job.

Place below code within the wp-config.php file in the root directory of your WordPress install and it will Automatically empty trash every 7 days.

 
define('EMPTY_TRASH_DAYS', 7 ); // Change Integer according to interval dates

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us