How To Make WordPress Empty Trash After A Number Of Days

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.

 

 

[rev_slider alias=”Conor-Bradley-Digital-Agency-knowledge-base-bottom-footer”][/rev_slider]

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

Updated on November 17, 2020