Use proper action to include admin scripts
-
You should really use admin_enqueue_scripts -> wp_enqueue_script to load admin scripts.
Your actual implementation is broken.Also you need to include select2 as dependency so it will load in the correct order.
Uncaught TypeError: jQuery(...).select2 is not a functionSimone B.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Use proper action to include admin scripts’ is closed to new replies.