[wp-hackers] Never Permanently Delete
rbilesky at gmail.com
Tue Oct 5 18:53:58 UTC 2010
Ok thanks I'll look into that filter. As far as hacking the core goes I
think I might have to to prevent wp_scheduled_delete() from firing. It
seems that even if I use wp unschedule event to stop it from running it
appears it will get rescheduled each time wp-admin is accessed.
Besides I though it was every time to hack core an angel gets it wings...lol
And I don't want to just set EMPTY_TRASH_DAYS to a large number because
eventually that day will come and I don't ever want anything permanently
deleted so that's not an option.
On Mon, Oct 4, 2010 at 5:59 PM, Andrew Nacin <wp at andrewnacin.com> wrote:
> On Mon, Oct 4, 2010 at 7:49 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:
> > There doesn;t happen to be a filter for the UI links is there?
> Of course. I wouldn't have suggested this if there wasn't. :)
> In 3.0, the filter for the post actions is called post_row_actions, for
> example. You can find this in wp-admin/includes/template.php.
> Hacking core is bad. http://codex.wordpress.org/images/b/b3/donthack.jpg
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers