Created
October 20, 2017 07:05
-
-
Save farookibrahim/97435cc2da30856e03c9187c8440dc84 to your computer and use it in GitHub Desktop.
Pizzaro - YITH Product Add ons compatibility issue with WC 3.2.x
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
if ( class_exists( 'YITH_WAPO' ) ) { | |
function pz_child_yith_pa_comp_fix() { | |
wp_register_script( 'select2', WC()->plugin_url() . '/assets/js/select2/select2.full.min.js', array( 'jquery' ) ); | |
wp_enqueue_script( 'select2' ); | |
wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full.min.js', array( 'jquery' ) ); | |
wp_enqueue_script( 'selectWoo' ); | |
wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select.min.js', array( 'jquery', 'selectWoo' ) ); | |
wp_enqueue_script( 'wc-enhanced-select' ); | |
} | |
add_action( 'admin_enqueue_scripts', 'pz_child_yith_pa_comp_fix' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment