I have a problem in custom post types, when I remove user, I can’t deleted there post or attribute all posts.
4 Answers
If you will delete the custom posts, if you kill a user, then hook inside the delete_user
Hook. This hook give you the possibility to call actions and doing other jobs, like delete posts to this user id.
See the codex for more information and a example source.