wp_enqueue_script was called incorrectly

Posted by Prem Tiwari | Updated on

Wrap all your scripts and styles in a function and hook that function to your target enqueue action. ?

1. wp_enqueue_scripts — front-end
2. admin_enqueue_scripts — admin page
3. login_enqueue_scripts — login page

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.

Related Questions & Answers