Created
October 10, 2019 15:17
-
-
Save KaineLabs/b01070a34aea9512dcba6761045878eb to your computer and use it in GitHub Desktop.
Motors Theme Fix.
This file contains 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
<?php | |
/** | |
* Motors Theme Fix. | |
*/ | |
function yzc_motors_theme_fix() { | |
if ( is_buddypress() ) { | |
wp_dequeue_script( 'stm-select2-js' ); | |
wp_deregister_script( 'stm-select2-js' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts' , 'yzc_motors_theme_fix', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment