[wp-hackers] WP Development & Production Sites

Ryan Bilesky rbilesky at gmail.com
Tue Nov 23 00:41:44 UTC 2010


what if there was a plugin that could backup the settings you've set from
one site (say a dev site) and import them to another site (say your
production site).  Now I am not aware of any way currently to where a plugin
can know what settings another plugin makes, but you could have a txt file
with a list of option names like

setting1
setting2
ect

Go though the db and get_option for each of those, save it out to a file
like

setting1:value1
setting2:value2
ect

Import that generated file into the production site that would step though
that file line by line and update_option to move all settings from one site
to another.


More information about the wp-hackers mailing list