Deactivate plugins using Migrate DB’s find and replace options

To disable plugins using the find and replace option in Migrate DB, search for the file path to the plugins main PHP file, and replace it with nothing.

To disable W3 Total Cache for example, you would search for w3-total-cache/w3-total-cache.php and leave the replace field empty.

Explanation

WordPress stores the active plugin data in the active_plugins record within the wp_options table as a serialised string. The Migrate DB plugin is smart enough to know it is performing a find and replace on a serialised string and will unserialise it, run the find and replace, and reserialise the string.

Leave a Comment