Table of Contents

Remove a Code Snippet From a Broken Site

Code snippets can be removed directly from the Database. To do this,

  1. Login in to your cPanel, locate the phpMyAdmin, and open your site database
  2. Locate and open the wp_options table
  3. Locate and remove the option_name = mainwp_ext_snippets_enabled row, or option_name = mainwp_ext_code_snippets.

This will remove all code snippets that were applied using our Code Snippets extension.

If you use bad snippets that are saved to the WP-Config.php, the file will need to be edited manually!
Still Have a Questions?
Search for additional solutions in the MainWP Community or start your own discussion