Home › Forums › ACF PRO › Updating User profile via front end form in WC vendors › Reply To: Updating User profile via front end form in WC vendors
Please keep in mind that you need to place
acf_form_head() function on top of your template. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/create-a-front-end-form/.
Also, could you please make sure that the
$current_user variable has the right data? I believe you need to get it from the global variable first like this:
global $current_user; acf_form( array( 'post_id' => 'user_'.$current_user->ID,
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.