I am trying to hook ‘wpmu_new_blog’ in a plugin so I can copy the widget settings from one blog to the new blog that is being created.

Does anyone know if there are WordPress functions to accomplish this, or should I just use straight SQL?

Thanks,
Dave

2 Answers
2

I don’t think there is anything specifically for this. You might want to look at the plugin code to find calls to get_option() and see what keys they are using, then browse the DB table wp_options with phpMyAdmin (or whatever) and grab the associated values.

Without specific support from the plugin this can be iffy since there may be other context-dependent info in there that you don’t want on the new site.

Leave a Reply

Your email address will not be published. Required fields are marked *