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
Hi @derekk2110
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,
Thanks 🙂
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.