// Step 1: Get all custom post types
$custom_post_types = get_post_types( array( 'public' => true, '_builtin' => false ), 'names', 'and' );
// Step 2: Loop through each custom post type
foreach ( $custom_post_types as $custom_post_type ) {
// Step 3: Get all taxonomies for the custom post type
$taxonomies = get_object_taxonomies( $custom_post_type, 'objects' );
// Step 4: Output the taxonomy information
foreach ( $taxonomies as $taxonomy ) {
echo $taxonomy->label . ': ' . $taxonomy->name . '<br>';
}
}