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!
The new features in ACF 6.1 mean we’ve nearly doubled the number of translatable strings, and we need help translating them into your language. See how translations are progressing and how you can help at the link below. https://t.co/TkEc2Exd6U
— Advanced Custom Fields (@wp_acf) May 17, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.