Categories
Comments Trash can automatically empty
Comments or posts within your WordPress website are often a way that a lot of SPAM comes in ,to have posts that are in the trash automatically deleted you can make a small addition in your wp-config.php
Step 1. To do this, log in within FTP, and navigate to the wp-config.php file. Open this with Notepad, or just within Visual studio code like this example.
Step 2. Navigate to line 84, and add the following line to the block for the custom values for this.
Step 3. Save the changes and publish to your website. Messages in the Trash are now deleted by default after seven days. This is further customizable to your liking, by changing the seven to, say, 30 if you want this done once a month.