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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.