Hello Borneyak and thanks for your help !
But I’m not sure to be able to use it since I use wordpress just as a REST API. My front is deserved by an Angular application.
Thanks for your answer.
Unfortunatly, I’ve already tried this solution, maybe I do it wrong :
function get_category_color( $object, $field_name, $request ) {
return get_term_meta(get_term($object['id'], $object['taxonomy'])->term_id, ‘cc_color’, true);
}
I’ve also tried by directly giving the term_id (as an int) but the behavior is the same.