title: Wordpress get plugin directory
body: <p>Is there any function that would return the full path of my plugin in WordPress?</p>
  
  <p>Example is</p>
  
  <pre><code>path/wp-contents/plugins/myplugin
  </code></pre>
  
  <p>I have tried <code>plugin_dir_path(__FILE__)</code> but returns the current dir.</p>