WordPress ACF update_post_meta not writing when i pass the post id as a variable
When a users submits a CF7 form I have a function hook that fires and does the saving to a custom template for the current form. However I want to update one field of another already existing custom post type (all created using acf).
I know the target post id as this is passed as a hidden field on the displayed form but this doesn’t work