-
-
Save ibndawood/be5682c8d0d1fb6f9ace31f08a40bd72 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