I'm looking for advice on the best way to store a series of settings for a modular theme.
To note:
- The settings will not be user facing (not suitable for the customiser api).
- Ideally the options would not be stored in the database as they will be static (for performance).
- The theme is not public, it will be used as a framework for multiple sites.
I have discarded add_option
/ get_option
which uses the database, and likewise for get_theme_mod
/ set_theme_mod
.
Am currently using a global scoped array - which is not ideal (from what I read).
Any other thoughts / suggestions?