Home › Forums › Backend Issues (wp-admin) › WP User frontend pro not saving ACF values to Database › Reply To: WP User frontend pro not saving ACF values to Database
what is returned is not what you think it is in this case
https://developer.wordpress.org/reference/functions/update_post_meta/
Return
int|bool Meta ID if the key didn’t exist, true on successful update, false on failure or if the value passed to the function is the same as the one that is already in the database.
Since you are passing the same value that is already set it is returning false. This is what ACF returns. The purpose of what you are doing is to force ACF to set the field key reference.
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.