Skip to content

Instantly share code, notes, and snippets.

@weismannweb
Created November 2, 2018 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weismannweb/6071a4191c406175d42db4a8606b59a3 to your computer and use it in GitHub Desktop.
Save weismannweb/6071a4191c406175d42db4a8606b59a3 to your computer and use it in GitHub Desktop.
Fix to remove 2nd bootstrap for Download Accordion FAQ Wordpress plugin when theme already has bootstrap
/**
* Dequeue the 2nd bootstrap script added by accordian plugin
*
* Hooked to the wp_print_scripts action, with a late priority (100),
* so that it is after the script was enqueued.
*/
function second_bootstrap_dequeue_script() {
wp_dequeue_script( 'wpsm_ac_bootstrap-js-front' );
}
add_action( 'wp_print_scripts', 'second_bootstrap_dequeue_script', 100 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment