10up / 10up-experience

The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up’s best practices.
GNU General Public License v2.0
129 stars 27 forks source link

Define Support Monitor options with constants inside wp-config #161

Open claytoncollie opened 4 months ago

claytoncollie commented 4 months ago

Is your enhancement related to a problem? Please describe.

I would like to define the Support Monitor options with a constant in the wp-config file. This would prevent settings from bleeding into the lower environments when a database migration takes place. We should keep the wp-admin settings screen but if constants are defined, use those values instead of the DB options.

These are the options I would like to control.

'enable_support_monitor' => 'no',
'api_key' => '',
'server_url' => 'https://supportmonitor.10up.com',
'production_environment' => 'no',

Code of Conduct