Home › Forums › Backend Issues (wp-admin) › Cannot update field programmatically › Reply To: Cannot update field programmatically
What does $order_id refer to? Is this the post ID of the order post?
I don’t know that much about the part of WC that you are trying to alter, but the only other thing that I can think of is that the field you are trying to update does not match up with the value in $order_id.
Either that or you are trying to update some type of sub field.
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.