Title: wp-config rules
Last modified: November 20, 2023

---

# wp-config rules

 *  Resolved [tolddsm](https://wordpress.org/support/users/tolddsm/)
 * (@tolddsm)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/wp-config-rules/)
 * Hi,
 * Nice plugin. Helps a lot for debugging.
 * As for the wp-config, this plugin adds several rules such as
 *     ```wp-block-code
       define( 'DUP_SECURE_KEY', );define( 'SCRIPT_DEBUG', true );define( 'WP_DEBUG_LOG', '' );define( 'WP_DEBUG_DISPLAY', false );define( 'DISALLOW_FILE_EDIT', true );
       ```
   
 * After disabling/deleting the plugin, these rules are not automatically removed.
   I found this because the “DISALLOW_FILE_EDIT” prevents one of my PHP from firing.
 * My question is:
    1. Should the plugin auto-remove these added rules after disabling the plugin? 
       If it should, why is it not removed in my case?
    2. If the rules added by the debugger are not removed after disabling/removing 
       the plugin, where should I check manually for the rules so I can remove them
       myself to prevent future conflicts?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [tolddsm](https://wordpress.org/support/users/tolddsm/)
 * (@tolddsm)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/wp-config-rules/#post-17279464)
 * [@qriouslad](https://wordpress.org/support/users/qriouslad/), or how to get a
   clean uninstall? Simply deactive or uninstall the plugin does not change wp-config
   rules back to pervious state.
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/wp-config-rules/#post-17284441)
 * Debug Log Manager only adds / modifies the following constants in wp-config.php
 * WP_DEBUG
   SCRIPT_DEBUGWP_DEBUG_LOGWP_DEBUG_DISPLAYDISALLOW_FILE_EDIT
 * It also stores the path to the custom debug.log file as an option with the key‘
   debug_log_manager_file_path’.
 * If you manually delete the above constant definitions in wp-config.php and delete
   the option above from wp_options table (e.g. using SQL Buddy plugin), you should
   have a ‘fresh’ state the next time you activate Debug Log Manager… and a new 
   debug.log file will be created.
 * I have not implemented any mechanism to delete those in a single click, maybe
   I should in a future release.
 *  Thread Starter [tolddsm](https://wordpress.org/support/users/tolddsm/)
 * (@tolddsm)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/wp-config-rules/#post-17284447)
 * Thanks, I think it could be a priority for your future release.
 * I assume many users who use this debug tool would have already done some sort
   of customization. Disabling the plugin should restore the config rules to avoid
   potential conflicts, such as PHP fired via hooks are disabled by DISALLOW_FILE_EDIT.
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/wp-config-rules/#post-17284481)
 * Thanks for the suggestion.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wp-config rules’ is closed to new replies.

 * ![](https://ps.w.org/debug-log-manager/assets/icon-256x256.png?rev=2783658)
 * [Debug Log Manager - Conveniently Monitor and Inspect Errors](https://wordpress.org/plugins/debug-log-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/debug-log-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/debug-log-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-log-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-log-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-log-manager/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Bowo](https://wordpress.org/support/users/qriouslad/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/wp-config-rules/#post-17284481)
 * Status: resolved