note:
instead of hijacking the gallery hook, this is actually a new shortcode.
so instead of [gallery type="carousel" ids="1,2,3,4"]
you’d use [bootstrap_carousel ids=”1,2,3,4″]
there’s still a simple substitution but this way the gallery hook is not tampered with. (Wouldn’t work if someone else tried to do the same thing the same way)