WordPress Trash Is Coming
August 17th, 2009 by Frank • WordPress News • 9 Comments

I would like to show you briefly what the new function trash is all about.
Users of Gmail are aware of the possibility in a web application: you move content into the trash and the content will be deleted after a certain time. Alternatively, you can also restore the content, always depending on a defined time frame.
WordPress integrates this function also in WordPress 2.9 for articles and comments. Some screenshots showing the function in articles and comments.


The time period is via constant defined, default are 30 days. If you want to change this value, it must be defined in wp-config.php.
define( 'EMPTY_TRASH_DAYS', 30 );
For developers, there are two hooks - for articles and comments, where you can intervene.
* @uses do_action() on 'untrash_post' before undeletion
* @uses do_action() on 'untrashed_post' after undeletion
* @uses do_action() on 'untrash_comment' before undeletion
* @uses do_action() on 'untrashed_comment' after undeletion
Otherwise, version 2.9 gets some more advanced features for media, as the users in the last survey decided. These will also be available in the core and thus the system continues to inflate. A pity, in my view that the user does not use the option of "Canonical Plugins" .
Info
- Published in WordPress News
- Tags: Constants, WordPress, wp2.9
- Comment feed
- read: 18914 | today: 3
- leave a Comment


Cool. This is certainly a handy feature to have. I hate anything that permanently deletes things forever. It's so... undo-able. :o)
I'm extremely happy about this feature, as its existence is pushing for the introduction of standardized comment-metadata, which is something I've wanted for a long, long time.
Seems really useful. Thanks for showing it up! ;-)
Bye,
Emanuele
btw will be any user rights for this? Because what i hate now is that autor can create article, admin can publish it, but author then can change it / delete it ... without admin permision. I think it should be so that author can change it, but this change goes as revision and then admin must publish this revision