Skip to content

3. Folder Structure

alex_prokopenko edited this page Dec 1, 2017 · 4 revisions

Full file structure

The organization of skeleton is similar to putting WordPress core files in its own subdirectory.

Improvements we made:

  • cms/ is where the WordPress core lives. It's managed by Composer but can't be put under vendor due to WP limitations.
  • wp-content/ is stay as usual in the web root folder.
  • wp-config.php remains in the web root, because it's required by WP, but it only acts as a loader. It defines generic constants which are similar to all environments. In most cases you don't need to edit it anymore.
  • environments/ is where the environment-specific constants are defined (like WP_DEBUG, etc.).
  • vendor/ is where the Composer managed dependencies are installed to.
  • a lot of security .htaccess files/tunings are also added by default.

Next: Configuration Files

Clone this wiki locally