Autofill advanced custom field with user data

Yes, it can be done (it’s almost always true ;))… The question is how to do this? 😉

And here is the solution… You’ll have to use acf/load_field filter:

function set_acf_field_default_value( $field ) {
    switch ( $field['name'] ) {
        case 'name_provider':
            $field['value'] = 'PUT YOUR VALUE HERE';
            break;
    }

    return $field;
}
add_filter('acf/load_field', 'set_acf_field_default_value' );

PS. Of course you can use if statement in there, but you rarely want to prefill only one field, so it’s easier to do this with switch.