this seems kind of silly, but i couldn’t find a satisfactory solution.
from whereever subdirectory the current class is, i want to get the base-directory of the plugin. this:
right now i do this, and it works:
$this->plugin_baseurl=plugins_url().”/”.explode(“/”, plugin_basename( __file__ ));
but it seems that there should be a more straight forward way to do this?
- The topic ‘Best way to get a plugin url’ is closed to new replies.