How to get list of custom taxonomies based on custom post type

Yo might want to have a look at this post:

You can include the empty terms by passing 'hide_empty' => 0,.