Enable/Disable WP options programmatically
I understand what you are trying, to make changing the WP config settings more convenient but I do not think it is possible to change them from a plugin. Constants like WP_DEBUG and DISALLOW_FILE_EDIT are defined in core files, specifically in wp-config.php, according to the Codex and, looking over the source code of this file … Read more