wp plugin path <plugin>

Gets the path to a plugin or to the plugin directory

Arguments

NameDescription
pluginThe plugin to get the path to. If not set, will return the path to the plugins directory

Options

NameDescription
--dirIf set, get the path to the closest parent directory, instead of the plugin file