Hello, how do you execute JS inside a plugin? Do you call it from an external file? And if yes how? I cannot find any resource on WP.org or elsewhere...
Thanks!
Hello, how do you execute JS inside a plugin? Do you call it from an external file? And if yes how? I cannot find any resource on WP.org or elsewhere...
Thanks!
I forgot to specify:
This is for a google map, so I need to call an external javascript file (which can be echoed or can be done using wp_enqueue_script), but I also need to write a piece of javascript and execute it on the post write/edit page.
You must log in to post.