Home › Forums › General Issues › priority issue with function › Reply To: priority issue with function
You’re add_action and remove filter need to have the same priority.
add_action('acf/save_post', 'my_post_title_updater', 1);
remove_filter('acf/save_post', 'my_post_title_updater', 1);
When you run the acf/save_post action with a priority of 1 you will need to use the $_POST['acf']
array to get the values of the other fields.
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.