View Categories

How To Make WordPress Empty Trash After A Number Of Days

< 1 min read

How To Make WordPress Empty Trash After A Number Of Days

  1. Log in to cPanel.
  2. Click File Manager in Quick Shortcuts
  3. Double click public_html

Showing WP Config.php changed from wp config sample.php in file manager Conor Bradley Digital Agency

  1. Locate the file wp-config.php, Right Click, and press edit.
  2. Press Edit again

typing define EMPTY TRASH DAYS 5 in to the wp config.php file then pressing save changes Conor Bradley DIgital Agency

  1. Add the following line where we have written paste here
  2. define( ‘EMPTY_TRASH_DAYS’, 5 );

  3. Change the number “5” to how many days you’d like WordPress to empty the trash

  4. Click Save Changes.

 

 

                                             Facebook | Twitter | Instagram | Youtube | Vimeo | Blog | Knowledge Base