1. Home
  2. Knowledge Base
  3. cPanel
  4. How to optimize WordPress trash settings

How to optimize WordPress trash settings

Step 1: Log in to cPanel.
Step 2: Click on the ‘File Manager’ from the Files section of the cPanel home screen.
Step 3: Navigate to the directory where WordPress is installed.
Step 4: Add the following line in the snippet to the wp-config.php file. Kindly replace ‘number-of-days’ with the number of days you want WordPress to retain items marked as trash before it deletes them permanently.

+++
define( ‘EMPTY_TRASH_DAYS’, number-of-days );
+++

Step 5: Click Save Changes.

Click here to view this article as Oryon knowledge base video tutorial playlist.

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support