Skip to content

Commit

Permalink
Merge pull request #120 from humanmade/backport-119-to-v3-branch
Browse files Browse the repository at this point in the history
[Backport v3-branch] Add documentation for config escape hatch
  • Loading branch information
rmccue authored Mar 2, 2020
2 parents 7680753 + 94ed1f1 commit 63dff4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions other-docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ if ( Altis\get_environment_type() === 'local' ) {
}
```

### Early Loading Escape Hatch

Altis will also load a file located at `.config/load-early.php` as soon as possible in the loading process. This file is loaded before the plugin API (`add_action`/`apply_filters`), and before Composer autoloads.

This should **only** be used as an escape hatch where absolutely necessary, as configuration should be set in the above files wherever possible.

If you need to use `load-early.php`, consider filing a feature request for an Altis configuration option.

## Next Steps

Expand Down

0 comments on commit 63dff4a

Please sign in to comment.