I have a custom taxonomy named papers. I've add a custom field (with ACF) named year_number that comes from the union of two other fields.
Now I'm trying to save that field within the taxonomy term and I've tried the following but it won't work. Where am I wrong?
function my_acf_update_year_number($term_id)
{
$value = get_field('year') . get_field('number');
$field_name = "year_number";
update_field($term_id, $field_name, $value);
}
add_action('edit_term', 'my_acf_update_year_number');