Skip to content

Instantly share code, notes, and snippets.

@nayemDevs
Created January 18, 2017 04:15
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 nayemDevs/f1ec2db116a4deaba3adea9d1933b3c2 to your computer and use it in GitHub Desktop.
Save nayemDevs/f1ec2db116a4deaba3adea9d1933b3c2 to your computer and use it in GitHub Desktop.
Conflict between Dokan and GeoDirectory plugin
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