Home › Forums › ACF PRO › Saving/updating metabox forms fail throughout WP › Reply To: Saving/updating metabox forms fail throughout WP
The first Woocommerce issue was likely unrelated to ACF Pro.
The latter two popped up because acf_form_post::save_post()
hooks onto ‘save_post’. This hook only fires if something changs on the post’s <i>main</i> fields. What this means, for example, if you change a field within an ACF metabox without changing anything else, this hook doesn’t fire. Instead, hook into ‘pre_update_post’. See this diff to solve this problem:
http://pastie.org/9617141
Here is a reference to this same problem in another plugin.
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.