Support

Account

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.