• Resolved levani01

    (@levani01)


    I’m using wp_insert_post function to insert new post but I need to add some meta data to each post as soon as it’s inserted. How can I do that? Should I retrieve the most recent post id ofter the post is inserted and use the id or there is some simpler method?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add some meta data to post inserted using wp_insert_post function’ is closed to new replies.