Forums

How to execute javascript in plugin? (2 posts)

  1. mariostella
    Member
    Posted 3 years 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 3 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic