get_object_taxonomies() returns empty array for custom post type

I have run into the same issue. I believe the root cause is the order of execution. For the sake of experiment, I ran get_object_taxonomies() immediately after register_taxonomy(), in fact in the same function and it worked as expected. So what to do? Use add_action() hook to execute get_object_taxonomies() after register_taxonomy(). The correct order of execution can be guaranteed via 3rd argument of add_action( ... int $priority = 10 ... )