I am writing a plugin for the back end but I need to add javascript that is created in a for loop to the head of the page.

How do i do this?



I think what you are looking for is here (Look for the section entitled "Load Scripts only on pages where needed"):

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy