I have 2 post type, so i create post on my main post type, then i need to create another post to fill the content to my main post in custom post type. Is there any way to update my main post publish date (modified post date) when i publish custom post type?

My main post and my custom post have the same category.

Already solved with publish_{$post->post_type} hook. Thanks for your respond.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.