Title: Import/ Export
Last modified: October 21, 2022

---

# Import/ Export

 *  Resolved [Smat Placid](https://wordpress.org/support/users/www_smatplacid_com/)
 * (@www_smatplacid_com)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/import-export-57/)
 * Hi Christoph,
 * does it makes sense to create an import- / export-function?
    I know, not that
   many options yet, but if you “unbloat” on many sites it would be a time-saver.
 * Kinda request 😉
 * Thank you, Roman

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [christophrado](https://wordpress.org/support/users/christophrado/)
 * (@christophrado)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/import-export-57/#post-16121211)
 * I see the use-case, but it indeed seems a little overkill for Unbloater to have
   its own import/export section…
 * All settings are stored in one wp_options field (unbloater_settings) though, 
   so it’s quite easy to read/write those just about with any tool (PHP, or even
   CLI I guess).
 * I personally use ManageWP and their Code Snippets feature to set stuff like this
   on multiple sites. Remotely configuring your sites might be a better approach
   than to log in to every site and import for each one.
 *  Thread Starter [Smat Placid](https://wordpress.org/support/users/www_smatplacid_com/)
 * (@www_smatplacid_com)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/import-export-57/#post-16122260)
 * Thats a good hint! Installed ManageWP.
    Would you mind providing an code example?
 * Thank you. Roman
 *  Plugin Author [christophrado](https://wordpress.org/support/users/christophrado/)
 * (@christophrado)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/import-export-57/#post-16122347)
 * The settings are basically stored as an array of options. You can read them from
   a site by running this:
 * `print_r( get_option( 'unbloater_settings' ) );`
 * Writing options should work along the lines of this:
 *     ```
       $settings = array(
       'remove_update_available_notice' => 1,
       'disable_auto_updates_core' => 0,
       ...
       );
       update_option( 'unbloater_settings', $settings );
       ```
   
 * As of now, all of the options are checkboxes, so it’s only a matter of setting
   0 (inactive) or 1 (active) for each option.
 * Just make sure to include all of the options when saving the settings programmatically,
   otherwise they’ll be unset.
 * Changing just one option on a site can be achieved like this:
 *     ```
       $settings = get_option( 'unbloater_settings' );
       $settings['disable_auto_updates_core'] = 0;
       update_option( 'unbloater_settings', $settings );
       ```
   
 * That’s basically reading the current settings, changing a value and finally saving
   the changes to the database.
 *  Thread Starter [Smat Placid](https://wordpress.org/support/users/www_smatplacid_com/)
 * (@www_smatplacid_com)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/import-export-57/#post-16122834)
 * Great – thank you. I appreciate this!
 * Schönes Wochenende. Roman

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Import/ Export’ is closed to new replies.

 * ![](https://ps.w.org/unbloater/assets/icon-256x256.png?rev=2450913)
 * [Unbloater](https://wordpress.org/plugins/unbloater/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/unbloater/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/unbloater/)
 * [Active Topics](https://wordpress.org/support/plugin/unbloater/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/unbloater/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/unbloater/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Smat Placid](https://wordpress.org/support/users/www_smatplacid_com/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/import-export-57/#post-16122834)
 * Status: resolved