I have a form which has a ACF field group. It is for first name, last name, and email – among other fields. The first name, last and email, when they are updated, they update the user fields. Everything is working fine including checking if the email is already in use. What I would like is that the ACF fields be pre-populated with their WordPress user counterparts. So someone will already have an email because you have to have one in WordPress. When they go to update this registration form, I want it to be pre-populated with their wordpress email. Then they can change it like usual if they want or have it stay as is. Something like:
This is my email field $emailField = $_POST[‘acf’][‘field_5ae7a967009de’];
make the $emailField have the value of the User’s WordPress registration email ( $current_email )
I am not sure where I would put this.
Currently I am doing this and have functions and overrides for what I’m building. Please help me out and be specific. I didn’t find any documentation online for this. Here are some of the functions and overrides of the project so far:
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp