Home › Forums › Backend Issues (wp-admin) › Got false bool when using update_field() › Reply To: Got false bool when using update_field()
Update_field() has the same return as the WP function update_postmeta().
When using update_field() the way you are using it you must tell ACF the post ID to be updated
update_field('field_key',$out,$post_id);
If it is returning false then either the value was not updated or the value has not changed. To check if the value is updated look in the _postmeta table in the database for the value of the field name on the post_id being updated.
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.