Created
January 18, 2017 04:15
-
-
Save nayemDevs/f1ec2db116a4deaba3adea9d1933b3c2 to your computer and use it in GitHub Desktop.
Conflict between Dokan and GeoDirectory plugin
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
function _mygd_dequeue_script() { | |
if(!function_exists('geodir_plugin_url')){return;} | |
wp_deregister_script( 'chosen' ); | |
wp_register_script('chosen', geodir_plugin_url() . '/geodirectory-assets/js/chosen.jquery.min.js', array(), GEODIRECTORY_VERSION); | |
wp_dequeue_style( 'dokan-chosen-style' ); | |
} | |
add_action( 'wp_print_scripts', '_mygd_dequeue_script', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment