The support of environments helps Monstra to make decisions based on the environment setting.
Monstra has four predefined environments.
The development environment.
The test environment.
The staging environment.
The production environment.
Set Your Environment
Setting your environment is done by setting the
Environments and Config
Based on the environment the Monstra is set to, the Monstra Core class looks for environment-specific defines and preloaded actions, filters, shortcodes. The Monstra Core class will look for the same file name in a directory that's named after the current environment.
Here is an example to illustrate this:
│ ├── defines.php