> For the complete documentation index, see [llms.txt](https://whoisandywhite.gitbook.io/porterwp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whoisandywhite.gitbook.io/porterwp/getting-started/configuration-files.md). Agents can also search and read this documentation through its [MCP server](https://whoisandywhite.gitbook.io/porterwp/~gitbook/mcp).

# Configuration files

PorterWP reads strict JSON files from `porter/config/` in the active theme. The examples in this documentation use `jsonc` fences for explanation, but comments are not valid in the files themselves.

| File                                                                                                                   | Purpose                                                                             |
| ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [`porter.json`](https://whoisandywhite.gitbook.io/porterwp/getting-started/configuration-files/porter-json.md)         | Theme support, premium switches and public/editor assets.                           |
| [`blocks.json`](https://whoisandywhite.gitbook.io/porterwp/getting-started/configuration-files/blocks-json.md)         | Custom-block discovery, block styles, patterns and block housekeeping.              |
| [`posttypes.json`](https://whoisandywhite.gitbook.io/porterwp/getting-started/configuration-files/posttypes-json.md)   | Custom post types and post-type-specific ACF field groups.                          |
| [`taxonomies.json`](https://whoisandywhite.gitbook.io/porterwp/getting-started/configuration-files/taxonomies-json.md) | Custom taxonomies and their object types.                                           |
| [`acf.json`](https://whoisandywhite.gitbook.io/porterwp/getting-started/configuration-files/acf-json.md)               | ACF option pages and standalone local field groups, gated by their individual APIs. |

Only create the files and sections the theme needs. Missing or unreadable files are treated as having no configuration for that feature.

## Paths and caching

The default directory is `get_stylesheet_directory() . '/porter/config'`. Change the directory with `porter_wp_config_filepath`; the filter receives the directory and requested filename.

PorterWP scopes cached configuration to the active stylesheet, stylesheet directory, theme version and source-file metadata. In production, decoded settings may be stored in the `porter_wp` object-cache group for one day by default. Values are always memoized for the current request, including valid empty arrays and false-like values.

The top-level `version` remains useful as an explicit deployment/cache marker—particularly for custom-block directory discovery—but PorterWP 1.4.95 also detects normal config-file and theme changes automatically.

Post-type and taxonomy configuration contributes to a coordinated rewrite signature. PorterWP performs at most one soft rewrite flush after registration when that signature changes; routine edits do not require a manual permalink save.

The optional public starter's `make.sh` and Gulp tasks can scaffold blocks, CSS and icons, but they are development tooling rather than configuration readers.
