# Setting a custom plugin directory

**URL:** https://discourse.roots.io/t/setting-a-custom-plugin-directory/20897
**Category:** bedrock
**Tags:** plugins
**Created:** 2021-06-05T14:22:08Z
**Posts:** 3

## Post 1 by @amtepe_patrick — 2021-06-05T14:22:08Z

I am trying to set custom directory for the plugins directory but anytime i set it up in the `application.php` the listing of the plugins is empty.

```
`Config::define('WP_PLUGIN_DIR', WP_CONTENT_DIR. '/plugins');
  Config::define('WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins');`
```

**here is a screenshot of the admin dashborard when the WP\_PLUGIN\_DIR is set in the application**

 ![Screenshot from 2021-06-05 14-19-10](https://discourse.roots.io/uploads/default/original/2X/1/17e11cc2402a46393641c17236b4a1c76bd1de87.png)

here is the screenshot of the directory tree  
 ![Screenshot from 2021-06-05 14-15-55](https://discourse.roots.io/uploads/default/original/2X/4/4c67e49e4d7b2f48cab2d36c4e4c0d697ad95cc8.png)

---

## Post 2 by @strarsis — 2021-06-06T14:41:34Z

For running the site, are you using Vagrant, Docker or similar?  
Because in those cases you may have to mount the plugin directory correctly in so it can be seen from WordPress.

Also just let print out the path in `WP_PLUGIN_DIR` and try to use exactly that from inside the server (e.g. `cd`).

---

## Post 3 by @system — 2021-07-17T14:22:12Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
