Support

Account

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');
    
    ?>