Home › Forums › Backend Issues (wp-admin) › my_acf_update_value breaking default save › Reply To: my_acf_update_value breaking default save
Ok I think I figured it out:
It’s not ACF breaking it, though it’s related. ‘wp_update_term’ if you don’t specify a value for an argument it uses the default. So my guess is it’s grabbing what’s in the database already and overriding what you’ve specified in the form.
A work-around, is instead of using the ‘wp_update_term’ function is to just do:
global $wpdb;
$wpdb->update($wpdb->terms, array('term_group' => $value), array('term_id'=>$term_id));
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.