This function correctly updates the data as it should, however, there is an issue with saving. When I view the post preview in the admin, it displays the page as if no fields have been entered. Yet, The actual admin page shows that all of the field data is there, so we know the form works properly.
If I simply click ‘save draft’ and then view the draft, everything displays properly.
I think I just need to make sure the updated fields save as a draft AFTER updating. I’ve tried adjusting the priority, from 20 to 5 but that doesn’t seem to work.