Home › Forums › General Issues › Store and retrieve custom meta data › Reply To: Store and retrieve custom meta data
Hi @joelpdavis,
Thanks for the post.
In this use case, you can make use of the acf/load_field filter to dynamically populate the data that was initially entered on the user form.
You will need to call this filter for each of the fields in your form and have them populate the corresponding custom fields on the registration page.
The code would look like so:
<?php
function my_acf_load_field( $field ) {
$field['value'] = "new_value_from_user_form";
return $field;
}
add_filter('acf/load_field/name=my_fieldname', 'my_acf_load_field');
?>
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.