Home › Forums › Bug Reports › Hooking in save_post_{$post->post_type} and update_field › Reply To: Hooking in save_post_{$post->post_type} and update_field
I think I found out (as an educated guess) what is happening… I’m hooking into WP’s stock save_post_{$post->post_type}
But somewhere in there, ACF’s similar hook point fires up and tries to update the fields I’ve already updated in my own hook, with the values of the respective input fields (which are effectively empty) thus replacing my fields with an empty string…
I somehow need to remove/prevent from within my hook ACF’s hook from firing up… How do I do that? I suppose remove_action(‘acf/save_post’) won’t be enough…
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.