Deleting (trashing) Custom Post Types
-
Plugin permanently deletes Posts of Custom Post Type rather than Trashing them and after some digging this appears to be down to the use of wp_delete_post which isn’t equipped to handle Custom Post Types:
http://notrelated.com/2010/09/19/wordpress-difference-between-trash-and-delete-functions/
Simple change I made was post-expirator.php
line 485: if (wp_delete_post($id) === false) {
to
line 485: if (wp_trash_post($id) === false) {Seems to be working well now unless anybody has had any problems?
The topic ‘Deleting (trashing) Custom Post Types’ is closed to new replies.