Опис
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.
Новинка! Параметри експорту
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!
Як це працює
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
Розробники також можуть експортувати довільні параметри, які не є частиною кастомізатора, за допомогою фільтра cei_export_option_keys. Ці опції можна експортувати та імпортувати, додавши ваш ключ опції до масиву опцій, які буде експортовано, як показано нижче.
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' );
Відомі проблеми
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.
Внеси свій внесок!
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.
Встановлення
-
Install the Customizer Export/Import plugin either via the WordPress plugin directory, or by uploading the files to your server at wp-content/plugins.
-
After activating, the export/import functionality will be available as a separate section within the WordPress customizer.
Часті питання
Please visit our blog for more info on the Customizer Export/Import plugin.
Відгуки
Учасники та розробники
“Customizer Export/Import” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
Учасники“Customizer Export/Import” було перекладено на 25 локалізацій. Дякуємо перекладачам за їх роботу.
Перекладіть “Customizer Export/Import” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.
Журнал змін
Version 0.1
- Перша версія.
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
- Виправлено проблему із завантаженням у 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
orsidebar
in their key to be exported.
Version 0.9.1
- Виправлено проблему з косими рисками в URL-адресах плагінів та S3. Пропси Huskynarr.
Version 0.9.4
- Added callout for Assistant
Version 0.9.5
- Виправлено незначну проблему з безпекою
Version 0.9.6
- Restrict uploads to users that can install plugins for better security.
Version 0.9.7.1
- Виправлено незначну проблему з безпекою
Version 0.9.7.2
- Виправлено помилку типу mime
Version 0.9.7.3
- Знову виправлено помилку типу mime
- Fixed non SSL links in plugin headers
Version 0.9.8
- Trim unwanted whitespace from imported file.