Skip to content

Instantly share code, notes, and snippets.

View zach-adams's full-sized avatar

Zach Adams zach-adams

View GitHub Profile
@zach-adams
zach-adams / wp-modifydb.php
Created August 31, 2016 21:30 — forked from jcanfield/wp-modifydb.php
Serialized PHP Search and Replace
<?php
/**
*
* Safe Search and Replace on Database with Serialized Data v2.0.1
*
* This script is to solve the problem of doing database search and replace when
* developers have only gone and used the non-relational concept of serializing
* PHP arrays into single database columns. It will search for all matching
* data on the database and change it, even if it's within a serialized PHP
* array.