Home › Forums › Backend Issues (wp-admin) › update_field is not working in action hook › Reply To: update_field is not working in action hook
i have the same identification for both key and name. i did tried to differentiate the key and name but didn’t work.
the field does exist, checked the postmeta table in mysql but there’s no value. tried the page template and it does filled the textarea. tried to switch post status to draft then publish, it does not update the textarea field which was populated using the page template
the variable $pcontent does has value hence it’s not empty, this is confirmed.
my guess is the update_field is not working from inside the hook action (btw, it’s not filter). but i can’t think of any reason.
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!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.