Support

Account

Home Forums Backend Issues (wp-admin) Issue with update_field Not Storing Data in Custom Post Type Reply To: Issue with update_field Not Storing Data in Custom Post Type

  • Hello ACF Community,

    I believe I’ve found the solution on my own.

    I was using:
    add_action('publish_locations', 'duplicate_pages_for_new_location', 10, 2);

    The docs didn’t provide much low level information for new users, so I had to delve into the docs a bit more and decided to give this a try, which appears to work:
    add_action('acf/save_post', 'duplicate_pages_for_new_location');

    I hope this solution proves helpful!

    Thank you!
    Paul