Forums

How to execute javascript in plugin? (2 posts)

  1. mariostella
    Member
    Posted 10 months ago #

    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!

  2. mariostella
    Member
    Posted 10 months ago #

    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.

Reply

You must log in to post.

About this Topic