Disable trash in WordPress

If you want to completely disable the trash:

define( 'EMPTY_TRASH_DAYS', 0 );Code language: PHP (php)

If you want trash to be emptied in 30 days:

define( 'EMPTY_TRASH_DAYS', 30 );Code language: PHP (php)


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.