We recommend using the file at
application/configs/site.php for your PHP
customizations. (Rename file
site.php if the file
site.php does not exist.)
If you follow this best practice, your customizations won't be lost during an upgrade, and will be easy to track.
site.php file is included on early aMember initialization stage, immediately
after aMember core API is initialized and all plugins/modules are loaded, but before
processing user input and rendering page. It is nice point to define necessary constants,
change settings or add hook callbacks to events.