I've two custom post types, type1
and type2
My current workflow of creating contents, from the user perspective
- a user created posts of
type1
, i.e.post1
,post2
,post3
on a particular day - our system automatic create a post of
type2
is at the end of the day, i.e. `post - the
post_parent
ofpost1
,post2
,post3
are set topost4
So, there are two cases:
- How to auto reset the
post_parent
ofpost1
,post2
,post3
whenpost4
is deleted? (I want to retainpost1
,post2
,post3
) - How to auto delete
post1
,post2
,post3
whenpost4
is deleted? (I want cleanup)