i am searching for a method, how to edit the post_parent of a post before creating/updating the post.
I tried the hook '
save_post' which seems to be to late and called too often. I tried '
pre_post_update' too, but still it does not affect the post although i get the parent's ID right.
Obviously I lack completely knowledge how to change the object $post before it will be inserted into the database.
Greatful for any help provided,