Created
June 25, 2018 22:25
-
-
Save KaineLabs/719efde063d7f9e738fec9cb59731a59 to your computer and use it in GitHub Desktop.
How to fix Aardvark Theme
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 | |
/** | |
* Remove The Plugin "buddypress-xprofile-custom-fields-type" select2 . | |
*/ | |
function youzer_remove_select2_files() { | |
if ( is_buddypress() ) { | |
wp_dequeue_style( 'select2-css' ); | |
wp_dequeue_style( 'bxcft-select2' ); | |
wp_deregister_script( 'bxcft-select2' ); | |
wp_deregister_script( 'select2-custom' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts' , 'youzer_remove_select2_files', 99999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment