How to determine if WP_Customize_Nav_Menu_Item_Setting is a ‘taxonomy’ type?
It’s easy to get the type of the menu item. Just call the setting’s value() method, which in the case of a nav menu item, would return an array with items like type (sample value: post_type or taxonomy) and object (sample value: post, page or category). So in your case, just check whether the type‘s … Read more