https://github.com/littlebizzy/disable-empty-trash
Stops WordPress emptying trash
https://github.com/littlebizzy/disable-empty-trash
wordpress wordpress-plugin
Last synced: 5 months ago
JSON representation
Stops WordPress emptying trash
- Host: GitHub
- URL: https://github.com/littlebizzy/disable-empty-trash
- Owner: littlebizzy
- License: gpl-3.0
- Created: 2017-09-17T21:53:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T09:13:44.000Z (over 1 year ago)
- Last Synced: 2025-05-07T19:58:43.710Z (about 1 year ago)
- Topics: wordpress, wordpress-plugin
- Language: PHP
- Homepage: https://www.littlebizzy.com/plugins/disable-empty-trash
- Size: 48.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Disable Empty Trash
Stops WordPress emptying trash
## Changelog
### 2.1.0
- added trash retention enforcement via `empty_trash_days` to prevent expiry
- added Multisite support using `pre_site_option_empty_trash_days`
- retained scheduler unhooking for extra protection against automatic cleanup
- refactored functions for clearer separation of policy vs. scheduler logic
- `Tested up to:` bumped to 6.9
### 2.0.3
- added `Tested up to` header
- added `Update URI` header
- added `Text Domain` header
- minor code optimization
### 2.0.2
- added `Requires PHP` header
- added "prevent direct access" snippet
- improved `gu_override_dot_org` snippet
### 2.0.1
- fix `gu_override_dot_org` snippet
### 2.0.0
- code totally refactored to WordPress standards
- supports PHP 7.0 to PHP 8.3
- works fine in Multisite
### 1.1.0
- Git Updater support
- disable wordpress.org updates
### 1.0.0
- initial release