10up-experience icon indicating copy to clipboard operation
10up-experience copied to clipboard

#161 - Allow defining support monitor constants to override settings.

Open joshuaabenazer opened this issue 7 months ago • 2 comments

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.

  1. SUPPORT_MONITOR_ENABLE
  2. SUPPORT_MONITOR_API_KEY
  3. SUPPORT_MONITOR_SERVER_URL

Closes #161

How to test the Change

  1. 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.
  2. 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.
  3. 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.

joshuaabenazer avatar Jul 18 '24 12:07 joshuaabenazer