Hi Again Minesh.
I know it's easy to delete users and choose to delete posts of users at the same time. But it doesn't work?
When I, as ADMIN, delete the User, only the User is deleted. The post the user made is still there, but the pics the user uploaded are deleted???
OMG, so easy function doesn't work now. I wonder how it's gonna be when I create more functions like payment.
Minesh you need to help me really
Can you please tell me from where exactly you want to delete the user and what posts you want to delete?
Please tell me the workflow and from where you want to delete what and after reviewing the requirement I will be able to guide you in the right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Do I need to login as frontend user other than admin user? if yes: Please share frontend user access details as well.
When using delete - we can control the posts to be deleted belongs to post type but not the post type itself.
you want to also delete the custom post type created by user including the posts belongs to that post type?
For instance user created "Cleaning" post type and added five posts to it. You want to delete those five posts as well as "Cleaning" post type? Are you sure that the post type "Cleaning" is not used by other users in such a case?
misunderstanding.
yes, you are right
Users can create only posts in custom post type.
ex: for the "CLEANING" custom post type, the user should not delete that, only the post he made.
So, the problem is when admin delete user, users post (ex. PELLE'S cleaning service -made of user PELLE) is still there under CLEANING custom post type.
Should it even be deleted when ADMIN deletes the user? Every user post should be deleted.
I just created the user HANNA, who created the post HANNAS cleaning service.
Then I, as admin, delete the HANNA user, and Hanna's post is still there under CLEANING post type? You can see that.
Did you create a conto via inprofs.com (registration) and then create a post (Create task - cleaning task) ?
The "HANNAS cleaning servic" post is created while loggedin as "brani" user. That is why it seems you experince this issue and this is not Toolset issue at all. This is core WordPress function.
You should try to test like this:
- Create a new user "testuser"
- Create a new post with title "test post for the testuser - cleaning service"
- make sure to set the post author of this post to "testuser"
- Then try to delete the user "testuser", once deleted, do you see the post "test post for the testuser - cleaning service" is also deleted.