Home Forums General Issues wp_insert_post() question


wp_insert_post() question

  • When creating a new post using wp_insert_post(), should I be adding the meta fields using the “meta_input” array, or should I be calling update_field() for each ACF field I want to add to the post?

  • It seems to me that multiple update_field() calls is very inefficient and I did not see an update_fields() call in the docs.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘wp_insert_post() question’ is closed to new replies.