WordPress.org

Support

Support » How-To and Troubleshooting » javascript plugin location

javascript plugin location

  • I’ve been developing plugins and happily been using:
    $pluginurl = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__));

    to get to my plugin location.

    However what I am doing is using javascript to link to a location however, right now to do that I need to put in the full absolute url, is there a way to get the plugin url with javascript?

    Thanks,

    Versi

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘javascript plugin location’ is closed to new replies.