Sauter la navigation

[Résolu] Delete all child post when deleting parent post

This support ticket is created Il y a 1 année. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 1 année.

Assisté par: Minesh.

Auteur
Publications
#2701358

Dear Sir/Madam,

I know how to disconnect the relationship between posts, how can I delete all child posts when I delete the parent post? Will it be permanently deleted or put into the trash?

I want to delete all permanently.

#2701405

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no such feature to automatically delete the child posts But you can achieve this by adding the hook that will help you to achieve your goal.

Here is few related ticket that might help you to delete the related child posts when parent post will be deleted:
- https://toolset.com/forums/topic/delete-related-posts-and-their-attachments-when-deleting-parent-post/
- https://toolset.com/forums/topic/delete-child-posts-when-parent-post-is-deleted/#post-1885083

Can you please try to use the hook shared with above related ticket and try to resolve your issue.