10up-experience
10up-experience copied to clipboard
#161 - Allow defining support monitor constants to override settings.
Description of the Change
Allow defining support monitor constants to override settings. Support has been added for both network activation and single-site activation. New constants that were introduced.
-
SUPPORT_MONITOR_ENABLE
-
SUPPORT_MONITOR_API_KEY
-
SUPPORT_MONITOR_SERVER_URL
Closes #161
How to test the Change
- Test out the settings for support monitor settings as part of this plugin on both a network activated multisite installation and a single site installation.
- Check by defining various combinations of all or some of the constants in the
wp-config.php
and reviewing the Support Monitor Settings. They should replace the user saved values and also not be editable when it is defined. - Removing all or any of the constants from the
wp-config.php
should preserve the prior user saved values for the settings.
Changelog Entry
Added - New Support Monitor settings constants -
SUPPORT_MONITOR_ENABLE
,SUPPORT_MONITOR_API_KEY
,SUPPORT_MONITOR_SERVER_URL
Credits
Props @joshuaabenazer
Checklist:
- [x] I agree to follow this project's Code of Conduct.
- [x] I have updated the documentation accordingly.
- [x] I have added tests to cover my change.
- [x] All new and existing tests pass.