Auto-delete trashed media files after {custom number} of days?
-
Hello,
I have enabled the “move to trash” functionality for media library files by adding define( ‘MEDIA_TRASH’, true ); in wp-config.php. My question is, is it possible to customize the number of days that pass before the trashed media files are permanently deleted? I know of the ‘EMPTY_TRASH_DAYS’ constant, but from what I can tell this seems to only apply to posts (including custom post types), pages and comments. I’m looking for a way to target the amount of time that trashed files are stored in the media library trash specifically.
Thanks. ??
/jenny
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Auto-delete trashed media files after {custom number} of days?’ is closed to new replies.