• Hi,

    I want to get the post data (post_title, post_content, post_tags & post_categories) before the post data is saved into the database. The reason is, I want to update my own contents with the submitted post data before it’s saved into db.

    I have tried ‘content_save_pre’, but there I can get only the post_content.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not sure if ‘save_post’ or ‘wp_insert_post’ will help you but might look at the function wp_insert_post in wp-includes/post.php to see what other filter/action you might hook into.

    Thread Starter Thamizhchelvan

    (@thamizhchelvan)

    well, I have tried ‘wp_insert_post_data’ hook, where I can get the post_title & able to update the post_content. But, not able to get the tags & categories of the post.

    Any other useful hooks or ways?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need help with wordpress hook..’ is closed to new replies.