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?
Steve
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?
Steve
You must be logged in to post a comment.
I think what you are looking for is here (Look for the section entitled “Load Scripts only on pages where needed”):