Skip to content

Example .wp env.json file

Rob Knight edited this page Apr 15, 2022 · 1 revision

Create a file named .wp-env.json and add this:

{
  "core": "WordPress/WordPress#5.8.4",
  "mappings": {
    "wp-content/themes": "./wp-themes",
    "wp-content/plugins": "./wp-plugins",
    "wp-content/mu-plugins": "./mu-plugins"
  },
  "plugins": [
    "https://github.com/WordPress/gutenberg/releases/download/v13.0.0/gutenberg.zip",
    "https://downloads.wordpress.org/plugin/theme-check.20211203.zip"
  ],
  "config": {
    "WP_ALLOW_MULTISITE": true,
    "WP_UPLOAD_MAX_FILESIZE": "128M",
    "WP_MEMORY_LIMIT": "256M",
    "WP_MAX_MEMORY_LIMIT": "256M"
  },
  "env": {
    "tests": {
      "core": "WordPress/WordPress",
      "themes": ["./ucsc"]
    },
    "development": {
      "themes": ["./theme-ucsc/", "WordPress/theme-experiments"]
    }
  }
}
Clone this wiki locally