Home › Forums › General Issues › Update ACF field programatically that has not been 'initialised' › Reply To: Update ACF field programatically that has not been 'initialised'
Hi John,
Turns out I had it right all along, but had a blindingly obvious error! I had the $ sign in front of update_field!
$update_field($field_key, $display_name, $assignment_id);
So obvious that I missed it completely. Thanks for your replies though – it is much appreciated.
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.