Send posts to trash

This topic contains 2 reply and 2 voices, and was last updated by madegood 11 years, 6 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
May 21, 2013 at 12:38 pm 3923
madegood Hi, When I delete my items from the dashboard the disappear completely. Is there a way to send them to the trash first instead? Can you tell me how to build a custom button that sends items to the trash, and not delete them? Thanks
May 21, 2013 at 6:07 pm 3932
Tareq Hasan Tareq Hasan

The deleted posts are actually moves to trash. But we don’t show trash posts in the dashboard, you can’t see it.

If you want to see trashed posts too, you’ve to add the trash post status to the dashboard query in /class/frontend-dashboard.php in line 72. There will be kinda problem if you do this as you’ll be able to edit trashed posts.

May 22, 2013 at 10:40 am 3993
madegood madegood

Actually for me, the deleted posts are disappearing forever. In the end I built a custom dashboard page and built the delete link with the wordpress default delete link;

get_delete_post_link( $id )

Viewing 2 Posts - 1 through 2 (of 2 total)