I'm trying to modify wp_nav_menu to display term thumbnails. To get those thumbnails I need term ID and taxonomy slug:
$thumbnailimg = get_the_term_thumbnail($term_id, '$taxonomy', 'medium');
I managed to get term ID for it with:
$term_id = (int)$item->object_id;
But now I need to check if that object is a term AND what custom taxonomy that term belongs to (I have 2 of them).
Can anyone help me to solve this problem? :)