Delete post in custom post type. Which one is better?
-
Hello, i look reference from the net and found 2 method on how to delete all the post in custom post type:
1. with SQL : DELETE FROM WP_POST WHERE post_type=’mycustomposttype’
2. through loop and delete manually: wp_delete_post( $loop->post->ID, true);I really like the first approach since its tons way faster for large post… but is there any negative impact if i delete directly from the WP_POST ?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Delete post in custom post type. Which one is better?’ is closed to new replies.