fbpx
Home » Blog » Clean-up Your WordPress Trash

Clean-up Your WordPress Trash

The WordPress Trash system is set to recycle items by default every 30 days but you can easily change this value.

You can set amount of days by adding one line to your wp-config.php file.

Here we set the trash to empty itself after 7 days.

define(‘EMPTY_TRASH_DAYS’, 7 );

Have you got any quick WordPress tips?

Keep In Touch

Wil

Wil is a dad, consultant, developer, conference organiser, speaker and business mentor. He co-organizes the WordPress Sydney meetup group and has been on the orgnising committee for WordCamp Sydney since 2014. He speaks at many technical events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.
If You Enjoyed This Post
Join Our Newsletter
Give it a try, you can unsubscribe anytime.
Close