Home › Forums › Backend Issues (wp-admin) › Got false bool when using update_field() › Reply To: Got false bool when using update_field()
With my last message, I forgot to tell you what you could do when it’s not an options page. For example, you save a publication in a CPT and you don’t have the ID before publishing.
Use the “save_post” hook for this: https://www.advancedcustomfields.com/resources/acf-save_post/
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.