Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save terrytsang/6c9a01e454f4fb536c18dda549ad3635 to your computer and use it in GitHub Desktop.
Save terrytsang/6c9a01e454f4fb536c18dda549ad3635 to your computer and use it in GitHub Desktop.
To configure how regularly the WordPress trash is emptied (within x days)
<?php
//add below code into wp-config.php
define('EMPTY_TRASH_DAYS', 1 ); //Integer is the amount of days
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment