Created
November 2, 2018 07:07
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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