Customizer Export/Import

説明

Customizer Export/Import

Customizer Export/Import プラグインはカスタマイザーインターフェイスから直接 WordPress のカスタマイザー設定をエクスポート及びインポート出来るようにします ! テーマで WordPress のカスタマイザーを設定を使用している場合、このプラグインはあなたのためのものです !

詳しい情報は、私達のブログの Customizer Export/Import plugin を参照してください。

新しいエクスポート設定

Customizer Export/Import プラグインは以前、get_theme_mods で保存されている設定のみをエクスポートしていましたが、今はそんなことはありません ! Customizer Export/Import プラグインはオプションとして保存された設定もエクスポートするようになりました !

仕組み

カスタマイズ設定をエクスポートすることは簡単です。カスタマイザー内からエクスポートボタンをクリックすると、設定ファイルのダウンロードが自動的に始まります。エクスポートファイルはテーマ名に基づいて名前付けされ、そのテーマとそのテーマの子テーマで設定をインポートするためにのみ使用可能です。エクスポートファイルには、get_theme_mods で関数またはオプションとして保存されているカスタマイザー設定を使用して取得した mod のシリアルダンプが含まれます。

カスタマイズ設定をインポートすることはとても簡単です。エクスポートしたインポートさせたいファイルを選び、画像をダウンロードしてインポートする(投稿をインポートするのと似たようなものです)かを選択した後、インポートボタンをクリックします。設定がインポートされるとページを更新され、新しいデザインで表示されます。

カスタム設定のエクスポート

開発者は 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' );

既知の問題

このプラグインは現在アクティブのテーマにのみ使用でき、カスタマイザープレビューや Theme Test Drive プラグインでプレビューされているテーマに使用することは出来ません。

貢献する !

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 プラグインは Beaver Builder からのフォークによって成り立っています。

スクリーンショット

  • カスタマイザーのエクスポート / インポートセクション

インストール

  1. Customizer Export/Import プラグインは WordPress のプラグインディレクトリを使用するか、ファイルをサーバーの wp-content/plugins にアップロードすることでインストールできます。

  2. アクティベート後、エクスポート / インポートの機能は WordPress カスタマイザーとは分けられて表示されるようになります。

FAQ

より多くの情報は、私達のブログのカスタマイザーのエクスポート / インポート プラグインを参照してください。

評価

2024年2月4日 1 reply
Thanks for the awesome plugin, it saved me some hours.I encountered a small problem that you can reproduce with the theme called Hestia, this theme doesn't appear to have the value “Template” at the beginning of its styles.css so moving the configs to a child theme didn't work.I simply removed the lines around 300 in :customizer-export-import/classes/class-cei-core.php //if ( $data['template'] != $template ) { // $cei_error = __( 'Error importing settings! The settings you uploaded are not for the current theme.', 'customizer-export-import' ); // return; //}
2023年6月24日
It wasn't working out of the box for me the first 4 attempts. So, I took a look at the parent's export.dat file and noticed like 7 empty spaces at the top of the file. So I deleted them and tried again and what do you know it worked...
106件のレビューをすべて表示

貢献者と開発者

Customizer Export/Import はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Customizer Export/Import” は24ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Customizer Export/Import” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

Version 0.1

  • 最初のリリース。

Version 0.2

  • カスタムオプションをエクスポートするための cei_export_option_keys フィルタが追加されました。

Version 0.3

  • オプションとして保存されたカスタマイザー設定がエクスポート及びインポートされるようになりました。

Version 0.5

  • WordPress 4.7.1 でのアップロードエラーを修正

Version 0.6

  • 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.

Version 0.9.4

  • Added callout for Assistant

Version 0.9.5

  • Fixed minor security issue

Version 0.9.6

  • Restrict uploads to users that can install plugins for better security.