Custom field with terms from another taxonomy programmatically
I have a custom taxonomy A with some terms (A1, A2,A3, etc) and a second custom taxonomy B.
I want to create a custom field in taxnomony B which will be a dropdown menu with the terms from taxonomy A.
I am able to create custom fields with texts and to get the terms from taxonomy A with get_terms(). The get_terms() function, returns an array of object (every object is a term). I am not sure how to build the dropdwon. How can I connect them? (I want to do it programmatically so that I can use the code for more than one sites)