The concept as we understand is that we need to add an action to a hook on the user data saving:
// $post_id to save against
$post_id = ‘user_' . $user_id;
// update the post
We are trying to hook it to ‘wpuf_update_profile' but the metadata seems blank at that stage and we are not sure how to search for an alternative hook while using WPUF for the users front profile edit.
Yes, you've to use Action Hook field field. Take a look how to use the action hook field field. Use this kind of code below in render_my_awesome_hook function.
‘field_groups' => array(130),
‘form' => false
Now you've to update the field value. In the update_my_brand_new_hook function as given in the example, ACF fields can be found in $_POST['fields'] variable as array. Use wpuf_update_profile action to update the user profile fields.
Thanks. We now paint the ACF form correctly “inside” the WPUF form and we've checked the variables arrive correctly by post, but when we hook to the do_action save of ACF nothing gets saved. I understand this might be out of the WPUF concept but any help or alternative hook to connect to would be appreciated.