Updating Post meta (ACF field) from Feed

Realized that I did not need to make this into a function, and inside the template_part the
update_field(‘ceg_valtozas’, $formatted_json[‘change_percent’]);

did actually work, so some part of the code must have been undefined.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)