Get plugin_dir_url() from one level deep within plugin

In a subdirectory within your plugin directory you can use the following code:

$this->plugin_location = plugin_dir_url(dirname(__FILE__));

Leave a Comment