Using WP Bootstrap Carousel with a Bootstrap-powered theme?

If you’re using the WP Bootstrap Carousel plugin with a Bootstrap-powered WordPress theme, you probably don’t need the styles and scripts that ship with the plugin. Here’s how to get rid of them:

To dequeue the BS styles and scripts, use the wp_bootstrap_carousel_enqueue action hook:

add_action( 'wp_bootstrap_carousel_enqueue', 'my_wp_bootstrap_carousel_dequeue' );
function my_wp_bootstrap_carousel_dequeue()
    wp_dequeue_style( 'wp-bootstrap-carousel' );

    wp_dequeue_script( 'wp-bootstrap-carousel' );

Paste the code snippet above in the functions.php file of your theme, or in your functionality plugin.