For Security purpose WordPress will keep a copy of deleted posts, pages, Comments and images in Trash until you delete them permanently. As per WordPress
Functionality Trash will clear automatically after 30 days. But this can be reduced by adding a small code into your wp-config.php file.
define ('EMPTY_TRASH_DAYS', 7); // Change 7 to number of days required
If you want make it clear, So that no unnecessary items are stored in your Trash, you can disable the trash system completely by adding this line of code to your wp-config.php file.
define ('EMPTY_TRASH_DAYS', 0);
Note:
1. Don't use Both the codes shown above at a time in wp-config.php file, however it takes top line as priority in PHP
Functionality Trash will clear automatically after 30 days. But this can be reduced by adding a small code into your wp-config.php file.
define ('EMPTY_TRASH_DAYS', 7); // Change 7 to number of days required
If you want make it clear, So that no unnecessary items are stored in your Trash, you can disable the trash system completely by adding this line of code to your wp-config.php file.
define ('EMPTY_TRASH_DAYS', 0);
Note:
1. Don't use Both the codes shown above at a time in wp-config.php file, however it takes top line as priority in PHP
No comments:
Post a Comment