Just a little tips. When you enqueue your script, it enqueues for the whole site including admin panel. If you don’t want the script in the admin panel, you can only include them for the site in frontend.
1 2 3 4 5 6 | function my_add_frontend_scripts() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core'); } add_action( 'wp_enqueue_scripts', 'my_add_frontend_scripts'); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.