Why trash folder got empty automatically?

Yesterday I move some of my WordPress product to trash, and keep only 4 products available.

Today I open my site, all trash products was not there? But the 4 products still there.

I don’t know are them deleted automatically?
What happen, please advice me?

1 Answer
1

Check the value for the constant EMPTY_TRASH_DAYS. With this constant can you control how long is the time to save in trash before delete automatically. Check at first the wp-config.php for this constant, maybe is set in your installation for a small value. The codex write more about the constant and his possibilities.

Also it is possible to change the default via hooks, like pre_delete_post. A good point to debug is the function wp_delete_post() in post.php.

But you write about ‘products’, maybe you have active a custom post type there add this post type and the enhancement, the plugin have a option for the function, timestamp to delete this post type Product.

Leave a Comment