Home › Forums › General Issues › Update post category description by saving content in ACF field › Reply To: Update post category description by saving content in ACF field
I was trying to show you where you’re going wrong.
You have the wrong arguments in your function…
You have listed
function acf_save_description($term_id, $taxonomy, $args)
and it should be
function acf_save_description($value, $post_id, $field)
You are using get_queried_object()
and this may not work in an acf/update_value hook.
I was trying to show you how to get the term ID that is being updated by using the $post_id value that ACF is passing to your filter.
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.