Open joshuaabenazer opened 1 month ago
@claytoncollie not sure if you want to test this one out?
@darylldoyle I pulled this branch into my project and it worked perfectly. Fields are being overwritten and set to disabled.
Thank you @joshuaabenazer for the effort here.
For reference, here are the definitions I used in my wp-config.php
file.
define( 'SUPPORT_MONITOR_ENABLE', 'yes' );
define( 'SUPPORT_MONITOR_API_KEY', 'api key goes here' );
define( 'SUPPORT_MONITOR_SERVER_URL', 'https://google.com' );
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
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.wp-config.php
should preserve the prior user saved values for the settings.Changelog Entry
Credits
Props @joshuaabenazer
Checklist: