wp plugin path

Get the path to a plugin or to the plugin directory.

GitHub Issues


The plugin to get the path to. If not set, will return the path to the
plugins directory.
If set, get the path to the closest parent directory, instead of the
plugin file.


$ cd $(wp plugin path) &amp;&amp; pwd