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 solved it myself.
    The solution is to add this line:

    `
    wp_safe_redirect( admin_url(‘/post.php?post=’. $post_id .’&action=edit’) );
    `

    after the update_post_meta().

    I think that WooCommerce overwrites the meta-fields as a sort of ‘very-last-thing’, when running those actions.