All Posts

Folder Structure for WordPress Development post

Here is a little detail on how I setup my development environment for WordPress plugin development.

  • Development Folder (with `vagrant` file)
    • Vagrant File
    • Public Folder / Web Root
      • Clean Copy of WordPress
      • MultiSite Install Folder
      • Project Site Folder
      • Project Site Folder
      • Shared wp-content folder
        • Shared Plugins Folder
          • Plugin
          • Plugin
          • Plugin
        • Shared Themes Folder
          • Theme
          • Theme
          • Theme

Moving the wp-content folder

In your project's WordPress install it is possible to relocate the wp-contnet folder outside of installation folder. This allows for multiple WordPress installs to share the same folder of plugins and themes, which can be beneficial for plugin development. I use this often while developing Ninja Forms, as well as other plugins.

The WordPress Codex has a section on how to move the wp-content folder.