select2 dependency not found
-
Hi there
I get the message that select2 is missing.
Newest WordPress, Woocommerce and Plugin Version.I’ve tried to add it like so.
This does not work, only when I set the handle (first parameter of the wp_enqueue_script) to “select2-js” the script gets loaded, but is still shown as missing.add_action('wp_enqueue_scripts', function(){ wp_enqueue_script('select2', 'https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js', ['jquery'], '4.0.13', TRUE); } , 1);
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘select2 dependency not found’ is closed to new replies.