Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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' );
- }
Add Comment
Please, Sign In to add comment