[wp-trac] [WordPress Trac] #64189: Include value of EMPTY_TRASH_DAYS constant

WordPress Trac noreply at wordpress.org
Tue Nov 4 01:45:38 UTC 2025


#64189: Include value of EMPTY_TRASH_DAYS constant
-----------------------------+-----------------------------
 Reporter:  desrosj          |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Site Health      |    Version:
 Severity:  normal           |   Keywords:  good-first-bug
  Focuses:                   |
-----------------------------+-----------------------------
 The `EMPTY_TRASH_DAYS` constant controls how long posts and comments
 remain in the trash before `wp_scheduled_delete()` deletes them
 permanently.

 The default value is `30`, but setting the constant to a falsey value will
 skip the trash entirely any time delete post/comment is clicked. This
 value could be useful for debugging certain behaviors in a WordPress site.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64189>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list