Cette extension n’a pas été testée avec plus de trois mises à jour majeures de WordPress. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

Customizer Export/Import

Description

Customizer Export/Import

The Customizer Export/Import plugin allows you to export or import your WordPress customizer settings from directly within the customizer interface! If your theme makes use of the WordPress customizer for its settings, this plugin is for you!

Please visit our blog for more info on the Customizer Export/Import plugin.

New! Export Options

The Customizer Export/Import plugin previously only exported options saved as theme mods using the get_theme_mods function, but that is no more! The Customizer Export/Import plugin now exports settings saved as options as well!

How It Works

Exporting customizer settings is easy. Click the export button from within the customizer and a file will automatically begin downloading with your settings. Export files are named after your theme and can only be used to import settings for the theme or child theme that they came from. Export files contain a serialized dump of mods retrieved using the get_theme_mods function or customizer settings saved as options.

Importing customizer settings is just as easy. Choose the export file you would like to import, select whether you would like to download and import images (similar to importing posts), and finally, click the import button. Once your settings have been imported the page will refresh and your new design will be displayed.

Exporting Custom Options

Developers can also have arbitrary options that aren’t part of the customizer exported by using the cei_export_option_keys filter. Those options can be exported and imported by adding your option key to the array of options that will be exported as shown below.

function my_export_option_keys( $keys ) {
    $keys[] = 'my_option_key';
    $keys[] = 'another_option_key';
    return $keys;
}

add_filter( 'cei_export_option_keys', 'my_export_option_keys' );

Known Issues

This plugin currently only works for active themes, not themes that are being previewed with either the Theme Test Drive plugin or the new customizer theme preview.

Contribute!

We’d love to hear your feedback as to how we could improve the Customizer Export/Import plugin, or better yet, see theme developers actively contribute! Don’t hesitate to let us know if you’re interested in contributing as we would gladly have others on board.

The Customizer Export/Import plugin is brought to you by the fine folks at Beaver Builder.

Captures d’écran

  • The export/import customizer section.

Installation

  1. Install the Customizer Export/Import plugin either via the WordPress plugin directory, or by uploading the files to your server at wp-content/plugins.

  2. After activating, the export/import functionality will be available as a separate section within the WordPress customizer.

FAQ

Please visit our blog for more info on the Customizer Export/Import plugin.

Avis

WOW!

When I think of how much time I lost doing this process manually before finding this plugin... Thanks guys!

perfect,

this was missing in the world and now its here, great

Life Saver!!! Great Plugin

Thank you Gentlemen for saving me hours of time. The entire process took me less than three minutes. This is one the best free plugins that I ever used!!! Thank you so much for sharing and I look forward to buying all of you a beer or coffee/tea ^_^

Worked perfectly to create child theme after-the-fact

I used this plugin to first create a child theme (after a couple years of minor tweaks to the theme) and then update my theme to the latest version. This plugin allowed me to save my customizations in the child theme instead of re-doing them from scratch. Here's how I did it: 1) Install this plugin 2) In your dashboard: Appearance > Customize 3) At bottom of list, select Export/Import 4) Click on Export button and save the file to your computer 5) Activate your child theme (my theme included a child theme ready to use) 6) After the child theme is active, go back to dashboard: Appearance > Customize 7) Select Export/Import option again 8) This time, under Import, click on Browse... and select the file you saved in step 4 9) Check the Download & Import Images checkbox, and then click Import 10) Your site should now be running the Child theme and look as it did before, with all customizations intact 11) Now go back to the Dashboard > Updates and update your theme to the latest version 12) The theme should update and still be running the child theme when finished; all customizations should be intact. Note: Before doing any of this, back up your site! Especially the style.css file, just in case. Hope this helps. Many thanks to the devs.

So easy!!!!

I must have configured 100 settings in parent theme (it seriously has that many), and I was dreading the switch to a child theme. This had me switched in 5 minutes (that included finding this plugin, switch, and leave this review). THANK YOU FOR MAKING THIS!!!!!!!!!!
Lire les 65 avis

Contributeurs & développeurs

« Customizer Export/Import » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“Customizer Export/Import” a été traduit dans 6 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « Customizer Export/Import » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

Version 0.1

  • Version initiale.

Version 0.2

  • Added cei_export_option_keys filter for exporting custom options.

Version 0.3

  • Customizer settings saved as options are now exported and imported.

Version 0.5

  • Fixed an issue with uploads in WordPress 4.7.1.

Version 0.6

  • Trying another fix for the issue with uploads in WordPress 4.7.1.

Version 0.7

  • Added support for exporting and importing custom CSS.

Version 0.8

  • Added support for option data that has an empty value.

Version 0.9

  • Allow options with widget or sidebar in their key to be exported.

Version 0.9.1

  • Fixed issue with slashes in plugin asset urls and S3. Props Huskynarr.