2026年10月1日、オプション名の部分一致による広範囲な読み取りを廃止しました。現在のコードは親・子テーマのtheme_modsと、loos_customizer・swell_options・swell_editorsだけを読みます。表示設定内にも独自HTMLや個人情報が含まれる場合があるため、出力を公開リポジトリや問い合わせフォームへ丸ごと貼り付けないでください。
SWELLの設定値を確認するための、管理者向けの読み取り専用ツールを紹介します。出力はTSVと表であり、Customizer Export/Importへ読み込める.datファイルではありません。
下の表はSWELL 2.16.0当時の調査例です。プラグインが実際にエクスポートする項目の保証や、別サイトへそのまま移せる設定一覧ではありません。
その備忘録です。
SWELLの設定値を調査した例
SWELL: 2.16.0のテーマの設定を出力して、まとめてみました。
| 内容 | 区分 | キー | 値 |
|---|---|---|---|
| wp_options から抽出できたSWELL/LOOS系オプション件数(探索用) | meta | matched_wp_options_count | 6 |
| 有効化中テーマ(子テーマ含む)スラッグ | meta | stylesheet | swell_child |
| 親テーマ(template)スラッグ | meta | template | swell |
| theme_mods(子テーマ側)の保存先 option_name | meta | theme_mods_option_stylesheet | theme_mods_swell_child |
| theme_mods(親テーマ側)の保存先 option_name | meta | theme_mods_option_template | theme_mods_swell |
| theme_mods のダミー/未使用要素(無視してOK) | mods/theme_mods_swell | 0 | FALSE |
| メニュー位置(location)→ メニューID の割当(環境依存ID) | mods/theme_mods_swell | nav_menu_locations | [] |
| 各サイドバーに配置されているウィジェット一覧(ブロック含む) | mods/theme_mods_swell | sidebars_widgets | {“time”:1729317802,”data”:{“wp_inactive_widgets”:[],”head_box”:[],”sidebar-1″:[“block-2″,”block-3″,”block-4″,”block-5″,”block-6″],”sidebar_sp”:[],”sidebar_top”:[],”fix_sidebar”:[],”sp_menu_bottom”:[],”front_top”:[],”front_bottom”:[],”page_top”:[],”page_bottom”:[],”single_top”:[],”single_bottom”:[],”single_cta”:[],”before_related”:[],”after_related”:[],”before_footer”:[],”footer_box1″:[],”footer_box2″:[],”footer_box3″:[],”footer_sp”:[]}} |
| theme_mods のダミー/未使用要素(無視してOK) | mods/theme_mods_swell_child | 0 | FALSE |
| 追加CSS(カスタマイザー)を保存している投稿ID(環境依存ID) | mods/theme_mods_swell_child | custom_css_post_id | 2402 |
| メニュー位置(location)→ メニューID の割当(環境依存ID) | mods/theme_mods_swell_child | nav_menu_locations | {“header_menu”:150} |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[archive_title_style] | |
| SWELLカスタマイザー:配色設定 | options | loos_customizer[color_footer_bg] | #202020 |
| SWELLカスタマイザー:配色設定 | options | loos_customizer[color_footer_text] | #ffffff |
| SWELLカスタマイザー:配色設定 | options | loos_customizer[color_footwdgt_bg] | #202020 |
| SWELLカスタマイザー:配色設定 | options | loos_customizer[color_footwdgt_text] | #ffffff |
| SWELLカスタマイザー:配色設定 | options | loos_customizer[color_link] | #94712c |
| SWELLカスタマイザー:配色設定 | options | loos_customizer[color_main] | #94712c |
| SWELLカスタマイザー:レイアウト幅/カラム設定 | options | loos_customizer[container_size] | 1200 |
| SWELLカスタマイザー:フッター著作権表示 | options | loos_customizer[copyright] | フッターに入れたサイト名 |
| SWELLカスタマイザー:ヘッダー固定(PC/SP) | options | loos_customizer[fix_header] | FALSE |
| SWELLカスタマイザー:ヘッダー固定(PC/SP) | options | loos_customizer[fix_header_sp] | FALSE |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[footer_title_type] | |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[h2_type] | |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[h3_type] | |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[h4_type] | |
| SWELLカスタマイザー:パンくず背景の表示/非表示 | options | loos_customizer[hide_bg_breadcrumb] | TRUE |
| SWELLカスタマイザー:目次デザイン | options | loos_customizer[index_style] | simple |
| SWELLカスタマイザー:メインビジュアル種別(スライダー等) | options | loos_customizer[main_visual_type] | none |
| SWELLカスタマイザー:レイアウト幅/カラム設定 | options | loos_customizer[max_column_sp] | 2 |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[page_title_style] | |
| SWELLカスタマイザー:ヘッダーのフレーズ表示位置 | options | loos_customizer[phrase_pos] | head_wrap |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[sec_title_style] | |
| SWELLカスタマイザー:表示/非表示(著者/コメント/アイコン) | options | loos_customizer[show_author] | FALSE |
| SWELLカスタマイザー:表示/非表示(著者/コメント/アイコン) | options | loos_customizer[show_comments] | FALSE |
| SWELLカスタマイザー:表示/非表示(著者/コメント/アイコン) | options | loos_customizer[show_foot_icon_list] | FALSE |
| SWELLカスタマイザー:表示/非表示(著者/コメント/アイコン) | options | loos_customizer[show_icon_list] | FALSE |
| SWELLカスタマイザー:記事メタ(タグ等)表示 | options | loos_customizer[show_meta_tag] | TRUE |
| SWELLカスタマイザー:ページ内リンク(前後/ページ送り等)表示 | options | loos_customizer[show_page_links] | FALSE |
| SWELLカスタマイザー:投稿スライダー表示 | options | loos_customizer[show_post_slide] | off |
| SWELLカスタマイザー:サイドバー表示制御(ページ種別ごと) | options | loos_customizer[show_sidebar_archive] | FALSE |
| SWELLカスタマイザー:サイドバー表示制御(ページ種別ごと) | options | loos_customizer[show_sidebar_page] | FALSE |
| SWELLカスタマイザー:サイドバー表示制御(ページ種別ごと) | options | loos_customizer[show_sidebar_top] | FALSE |
| SWELLカスタマイザー:タイトル周りの日付表示(PC/SP) | options | loos_customizer[show_title_date] | FALSE |
| SWELLカスタマイザー:タイトル周りの日付表示(PC/SP) | options | loos_customizer[show_title_date_sp] | FALSE |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[sidettl_type] | b_left |
| SWELLカスタマイザー:見出し/タイトル装飾スタイル | options | loos_customizer[spmenu_title_type] | b_left |
| SWELLカスタマイザー:全体の角丸/フラット(見た目テイスト) | options | loos_customizer[to_site_flat] | TRUE |
| SWELLカスタマイザー:全体の角丸/フラット(見た目テイスト) | options | loos_customizer[to_site_rounded] | TRUE |
| SWELLカスタマイザー:URLコピー/シェアボタン位置 | options | loos_customizer[urlcopy_btn_pos] | none |
| SWELLエディター設定:引用(blockquote)デザイン | options | swell_editors[blockquote_type] | simple |
| SWELLエディター設定:ブログカード(内部/外部)のデザイン | options | swell_editors[blog_card_type] | type1 |
| SWELLエディター設定:ブログカード(内部/外部)のデザイン | options | swell_editors[blog_card_type_ex] | type3 |
| SWELLエディター設定:枠線プリセット | options | swell_editors[border01] | solid 1px var(–color_main) |
| SWELLエディター設定:枠線プリセット | options | swell_editors[border02] | double 4px var(–color_main) |
| SWELLエディター設定:枠線プリセット | options | swell_editors[border03] | dashed 2px var(–color_border) |
| SWELLエディター設定:枠線プリセット | options | swell_editors[border04] | solid 4px var(–color_gray) |
| SWELLエディター設定:ボタン角丸プリセット | options | swell_editors[btn_radius_line] | 80px |
| SWELLエディター設定:ボタン角丸プリセット | options | swell_editors[btn_radius_normal] | 80px |
| SWELLエディター設定:ボタン角丸プリセット | options | swell_editors[btn_radius_shiny] | 80px |
| SWELLエディター設定:ボタン角丸プリセット | options | swell_editors[btn_radius_solid] | 80px |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_blue_bg] | #e2f6ff |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_blue_border] | #93d2f0 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_gray_bg] | #f7f7f7 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_gray_border] | #ccc |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_green_bg] | #d1f8c2 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_green_border] | #9ddd93 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_red_bg] | #ffebeb |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_red_border] | #f48789 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_yellow_bg] | #f9f7d2 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_bln_yellow_border] | #fbe593 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_btn_blue2] | #35eaff |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_btn_blue] | #338df4 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_btn_green2] | #7bf7bd |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_btn_green] | #62d847 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_btn_red2] | #ffbc49 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_btn_red] | #f74a4a |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cap_01] | #f59b5f |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cap_01_light] | #fff8eb |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cap_02] | #5fb9f5 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cap_02_light] | #edf5ff |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cap_03] | #2fcd90 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cap_03_light] | #eafaf2 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cell_icon_check] | #94e29c |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cell_icon_circle] | #94e29c |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cell_icon_close] | #ec9191 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cell_icon_doubleCircle] | #ffc977 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cell_icon_hatena] | #93c9da |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cell_icon_line] | #9b9b9b |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_cell_icon_triangle] | #eeda2f |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_deep01] | #e44141 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_deep02] | #3d79d5 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_deep03] | #63a84d |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_deep04] | #f09f4d |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_faq_a] | #6599b7 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_faq_q] | #d55656 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_announce] | #ffa537 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_announce_bg] | #fff5f0 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_bad] | #4b73eb |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_bad_bg] | #eafaff |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_batsu] | #f36060 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_book] | #787364 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_book_bg] | #f8f6ef |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_caution] | #f7da38 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_check] | #86d67c |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_good] | #3cd250 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_good_bg] | #ecffe9 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_hatena] | #5295cc |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_info] | #f578b4 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_info_bg] | #fff0fa |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_memo] | #84878a |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_pen] | #7a7a7a |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_pen_bg] | #f7f7f7 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_icon_point] | #ffa639 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_list_bad] | #f36060 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_list_check] | |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_list_good] | #86dd7b |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_list_num] | |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_list_triangle] | #f4e03a |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_mark_blue] | #b7e3ff |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_mark_green] | #bdf9c3 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_mark_orange] | #ffddbc |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_mark_yellow] | #fcf69f |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_pale01] | #fff2f0 |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_pale02] | #f3f8fd |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_pale03] | #f1f9ee |
| SWELLエディター設定:ブロック用カラー/装飾カラー | options | swell_editors[color_pale04] | #fdf9ee |
| SWELLエディター設定:装飾用の追加CSS(カスタム) | options | swell_editors[custom_format_css] | CSSの内容 |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_bg_1] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_bg_2] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_bold_1] | 1 |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_bold_2] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_color_1] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_color_2] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_font_size_1] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_font_size_2] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_italic_1] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_italic_2] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_marker_1] | orange |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_set_marker_2] | |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_title_1] | カスタム1 |
| SWELLエディター設定:装飾(カスタム書式)設定 | options | swell_editors[format_title_2] | |
| SWELLエディター設定:アイコンボックスのスタイル | options | swell_editors[iconbox_s_type] | fill-flat |
| SWELLエディター設定:アイコンボックスのスタイル | options | swell_editors[iconbox_type] | flat |
| SWELLエディター設定:その他 | options | swell_editors[is_btn_gradation] | |
| SWELLエディター設定:マーカー(蛍光ペン)タイプ | options | swell_editors[marker_type] | thin |
| SWELL設定:その他(パフォーマンス/機能) | options | swell_options[ajax_after_post] | |
| SWELL設定:その他(パフォーマンス/機能) | options | swell_options[ajax_footer] | |
| SWELL広告/コード挿入(見出し前/インフィード等) | options | swell_options[auto_ad_code] | |
| SWELL広告/コード挿入(見出し前/インフィード等) | options | swell_options[before_h2_addcode] | |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_blogcard_ex] | 1 |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_blogcard_in] | 1 |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_bottom_menu] | 1 |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_card_time] | 30 |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_header] | 1 |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_sidebar] | 1 |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_spmenu] | 1 |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_style] | 1 |
| SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ | options | swell_options[cache_top] | 1 |
| SWELL高速化:JS遅延読み込み(対象/除外/待機秒数) | options | swell_options[delay_js_list] | twitter.com/widgets.js,\ninstagram.com/embed.js,\nconnect.facebook.net,\nassets.pinterest.com,\n |
| SWELL高速化:JS遅延読み込み(対象/除外/待機秒数) | options | swell_options[delay_js_prevent_pages] | |
| SWELL高速化:JS遅延読み込み(対象/除外/待機秒数) | options | swell_options[delay_js_time] | 5 |
| SWELL:Font Awesome バージョン | options | swell_options[fa_version] | v6 |
| SWELL広告/コード挿入(見出し前/インフィード等) | options | swell_options[infeed_code_pc] | |
| SWELL広告/コード挿入(見出し前/インフィード等) | options | swell_options[infeed_code_sp] | |
| SWELL広告/コード挿入(見出し前/インフィード等) | options | swell_options[infeed_interval] | 4 |
| SWELL設定:その他(パフォーマンス/機能) | options | swell_options[jquery_to_foot] | |
| SWELL高速化:LazyLoad方式 | options | swell_options[lazy_type] | lazy |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_alternateName] | |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_founder_alternateName] | |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_founder_name] | |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_founder_sameAs] | |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_founder_url] | |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_logo] | |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_name] | |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_sameAs] | |
| SWELL構造化データ:Organization 情報 | options | swell_options[ld_org_url] | |
| SWELL読み込み設定:CSS/JS/Font Awesome等 | options | swell_options[load_font_awesome] | |
| SWELL読み込み設定:CSS/JS/Font Awesome等 | options | swell_options[load_jquery] | |
| SWELL読み込み設定:CSS/JS/Font Awesome等 | options | swell_options[load_style_async] | |
| SWELL読み込み設定:CSS/JS/Font Awesome等 | options | swell_options[load_style_inline] | 1 |
| SWELL設定:その他(パフォーマンス/機能) | options | swell_options[pjax_prevent_pages] | |
| SWELL設定:その他(パフォーマンス/機能) | options | swell_options[prefetch_prevent_keys] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_ad_tag] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_balloon] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_blog_parts] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_delete_empp] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_emoji] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_feed_link] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_img_srcset] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_jqmigrate] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_lp] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_luminous] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_media_inf_scrll] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_page_fade] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_patterns] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_pv_count] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_rel_link] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_rest_link] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_robots_image] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_rsd_link] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_self_pingbacks] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_sitemap] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_somooth_sc] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_url2card] | 1 |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_wptexturize] | |
| SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等) | options | swell_options[remove_wpver] | 1 |
| SWELL広告/コード挿入(見出し前/インフィード等) | options | swell_options[sc_ad_code] | |
| SWELL設定:その他(パフォーマンス/機能) | options | swell_options[separate_style] | |
| SWELL機能ON/OFF(構造化データ・PJAX等) | options | swell_options[use_delay_js] | 1 |
| SWELL機能ON/OFF(構造化データ・PJAX等) | options | swell_options[use_json_ld] | 1 |
| SWELL機能ON/OFF(構造化データ・PJAX等) | options | swell_options[use_pjax] | off |
| SWELL内部フラグ(初期設定完了など) | options | swell_others | {“checked_terms_20221009″:true,”setted_custom_caps”:true} |
| SWELLテーマバージョン | options | swell_version | 2.16.0 |
| SWELL購入/ライセンス関連の登録メール(機微情報なので扱い注意!) | options | sweller_email | user@example.com |
テーマの設定を出力するカスタマイズ
以下テーマの設定を出力するコードです。

このコードは設定を変更しません。メニュー・ウィジェット・画像・追加CSSの投稿IDはサイトごとに異なるため、値のコピーだけで移行できません。設定移行は別の検証が必要です。
PHP 8.0以上を対象としています。子テーマのfunctions.phpまたはPHPスニペットのどちらか一方へ追加し、管理者で「ツール → テーマ設定の出力」を開きます。元に戻すときは追加したコードを外すだけで、設定値は変更されません。
/**
* Theme Settings Dump (FINDER) with NOTE column
*/
add_action('admin_menu', function () {
add_management_page(
'テーマ設定の出力',
'テーマ設定の出力',
'manage_options',
'theme-settings-dump-finder',
'waza_render_theme_settings_dump_finder'
);
});
function waza_render_theme_settings_dump_finder() {
if (!current_user_can('manage_options')) return;
global $wpdb;
$template = get_option('template'); // parent theme slug (e.g. swell)
$stylesheet = get_option('stylesheet'); // active theme slug (e.g. swell_child)
// theme_mods option names
$mods_opt_stylesheet = 'theme_mods_' . $stylesheet;
$mods_opt_template = 'theme_mods_' . $template;
$mods_stylesheet = get_option($mods_opt_stylesheet);
$mods_template = ($mods_opt_template === $mods_opt_stylesheet) ? null : get_option($mods_opt_template);
if (!is_array($mods_stylesheet)) $mods_stylesheet = [];
if (!is_array($mods_template)) $mods_template = [];
$rows = [];
// ---- meta
$rows[] = ['meta', 'template', $template, waza_swell_note('meta', 'template')];
$rows[] = ['meta', 'stylesheet', $stylesheet, waza_swell_note('meta', 'stylesheet')];
$rows[] = ['meta', 'theme_mods_option_stylesheet', $mods_opt_stylesheet, waza_swell_note('meta', 'theme_mods_option_stylesheet')];
$rows[] = ['meta', 'theme_mods_option_template', $mods_opt_template, waza_swell_note('meta', 'theme_mods_option_template')];
// ---- dump theme_mods (both)
foreach ($mods_stylesheet as $k => $v) {
$sec = 'mods/' . $mods_opt_stylesheet;
$rows[] = [$sec, (string)$k, waza_dump_stringify($v), waza_swell_note($sec, (string)$k)];
}
foreach ($mods_template as $k => $v) {
$sec = 'mods/' . $mods_opt_template;
$rows[] = [$sec, (string)$k, waza_dump_stringify($v), waza_swell_note($sec, (string)$k)];
}
// Only read known display-setting options, never scan arbitrary names.
$options = [];
foreach (['loos_customizer', 'swell_options', 'swell_editors'] as $option_name) {
$value = get_option($option_name, null);
if ($value !== null) {
$options[] = ['option_name' => $option_name, 'option_value' => $value];
}
}
$rows[] = ['meta', 'matched_wp_options_count', (string)count($options), waza_swell_note('meta', 'matched_wp_options_count')];
foreach ($options as $opt) {
$name = $opt['option_name'];
$val = maybe_unserialize($opt['option_value']);
// loos_customizer は中身を展開して 1行=1設定
if ($name === 'loos_customizer' && is_array($val)) {
foreach ($val as $k => $v) {
$k2 = "loos_customizer[$k]";
$rows[] = ['options', $k2, waza_dump_stringify($v), waza_swell_note('options', $k2)];
}
continue;
}
// swell_options / swell_editors も展開
if (in_array($name, ['swell_options','swell_editors'], true) && is_array($val)) {
foreach ($val as $k => $v) {
$k2 = "{$name}[$k]";
$rows[] = ['options', $k2, waza_dump_stringify($v), waza_swell_note('options', $k2)];
}
continue;
}
// それ以外はそのまま
$rows[] = ['options', $name, waza_dump_stringify($val), waza_swell_note('options', $name)];
}
// sort
usort($rows, function($a, $b){
if ($a[0] === $b[0]) return strcmp($a[1], $b[1]);
return strcmp($a[0], $b[0]);
});
// TSV(4列固定)
$tsv = "section\tkey\tvalue\tnote\n";
foreach ($rows as $r) {
$note = $r[3] ?? '';
$tsv .= $r[0] . "\t" . $r[1] . "\t" . $r[2] . "\t" . $note . "\n";
}
// output
echo '<div class="wrap">';
echo '<h1>Theme Settings Dump (FINDER)</h1>';
echo '<h2><label for="waza-settings-tsv">TSV(読み取り専用)</label></h2>';
echo '<textarea id="waza-settings-tsv" readonly style="width:100%;height:300px;font-family:monospace;">'
. esc_textarea($tsv) . '</textarea>';
echo '<h2>Table view</h2>';
echo '<table class="widefat striped">';
echo '<thead><tr><th style="width:220px;">section</th><th>key</th><th>value</th><th>note</th></tr></thead><tbody>';
foreach ($rows as $r) {
$note = $r[3] ?? '';
echo '<tr>';
echo '<td>' . esc_html($r[0]) . '</td>';
echo '<td><code>' . esc_html($r[1]) . '</code></td>';
echo '<td style="white-space:pre-wrap;word-break:break-word;">' . esc_html($r[2]) . '</td>';
echo '<td style="white-space:pre-wrap;word-break:break-word;">' . esc_html($note) . '</td>';
echo '</tr>';
}
echo '</tbody></table>';
echo '</div>';
}
function waza_dump_stringify($v) {
$v = maybe_unserialize($v);
if (is_bool($v)) $s = $v ? 'true' : 'false';
elseif (is_null($v)) $s = '';
elseif (is_scalar($v)) $s = (string)$v;
else $s = wp_json_encode($v, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
// 改行/タブ潰し(TSV崩れ防止)
return str_replace(["\r\n", "\r", "\n", "\t"], ["\\n", "\\r", "\\n", "\\t"], $s);
}
function waza_swell_note($section, $key) {
// meta
if ($section === 'meta') {
return match ($key) {
'matched_wp_options_count' => 'wp_options から抽出できたSWELL/LOOS系オプション件数(探索用)',
'template' => '親テーマ(template)スラッグ',
'stylesheet' => '有効化中テーマ(子テーマ含む)スラッグ',
'theme_mods_option_stylesheet' => 'theme_mods(子テーマ側)の保存先 option_name',
'theme_mods_option_template' => 'theme_mods(親テーマ側)の保存先 option_name',
default => 'メタ情報',
};
}
// theme_mods(Customizer / ウィジェット / メニューなど)
if (str_starts_with($section, 'mods/')) {
if ($key === 'nav_menu_locations') return 'メニュー位置(location)→ メニューID の割当(環境依存ID)';
if ($key === 'custom_css_post_id') return '追加CSS(カスタマイザー)を保存している投稿ID(環境依存ID)';
if ($key === 'sidebars_widgets') return '各サイドバーに配置されているウィジェット一覧(ブロック含む)';
if ($key === '0') return 'theme_mods のダミー/未使用要素(無視してOK)';
return 'テーマ設定(theme_mods / Customizer系)';
}
// options(SWELL/LOOS)
if ($section === 'options') {
// loos_customizer[...]
if (preg_match('/^loos_customizer\[(.+)\]$/', $key, $m)) {
$k = $m[1];
if (str_starts_with($k, 'color_')) return 'SWELLカスタマイザー:配色設定';
if (in_array($k, ['to_site_flat','to_site_rounded'], true)) return 'SWELLカスタマイザー:全体の角丸/フラット(見た目テイスト)';
if (in_array($k, ['container_size','max_column_sp'], true)) return 'SWELLカスタマイザー:レイアウト幅/カラム設定';
if (in_array($k, ['fix_header','fix_header_sp'], true)) return 'SWELLカスタマイザー:ヘッダー固定(PC/SP)';
if ($k === 'phrase_pos') return 'SWELLカスタマイザー:ヘッダーのフレーズ表示位置';
if ($k === 'main_visual_type') return 'SWELLカスタマイザー:メインビジュアル種別(スライダー等)';
if ($k === 'show_post_slide') return 'SWELLカスタマイザー:投稿スライダー表示';
if (str_contains($k, 'sidebar')) return 'SWELLカスタマイザー:サイドバー表示制御(ページ種別ごと)';
if ($k === 'hide_bg_breadcrumb') return 'SWELLカスタマイザー:パンくず背景の表示/非表示';
if ($k === 'index_style') return 'SWELLカスタマイザー:目次デザイン';
if (in_array($k, ['h2_type','h3_type','h4_type','sec_title_style','sidettl_type','spmenu_title_type','footer_title_type','archive_title_style','page_title_style'], true))
return 'SWELLカスタマイザー:見出し/タイトル装飾スタイル';
if (in_array($k, ['show_title_date','show_title_date_sp'], true)) return 'SWELLカスタマイザー:タイトル周りの日付表示(PC/SP)';
if (in_array($k, ['show_meta_tag'], true)) return 'SWELLカスタマイザー:記事メタ(タグ等)表示';
if (in_array($k, ['show_page_links'], true)) return 'SWELLカスタマイザー:ページ内リンク(前後/ページ送り等)表示';
if (in_array($k, ['show_author','show_comments','show_icon_list','show_foot_icon_list'], true)) return 'SWELLカスタマイザー:表示/非表示(著者/コメント/アイコン)';
if ($k === 'copyright') return 'SWELLカスタマイザー:フッター著作権表示';
if ($k === 'urlcopy_btn_pos') return 'SWELLカスタマイザー:URLコピー/シェアボタン位置';
return 'SWELLカスタマイザー:その他設定';
}
// swell_editors[...]
if (preg_match('/^swell_editors\[(.+)\]$/', $key, $m)) {
$k = $m[1];
if (str_starts_with($k, 'color_')) return 'SWELLエディター設定:ブロック用カラー/装飾カラー';
if (str_starts_with($k, 'border')) return 'SWELLエディター設定:枠線プリセット';
if (str_starts_with($k, 'btn_radius')) return 'SWELLエディター設定:ボタン角丸プリセット';
if ($k === 'marker_type') return 'SWELLエディター設定:マーカー(蛍光ペン)タイプ';
if (str_starts_with($k, 'format_set_') || str_starts_with($k, 'format_title_')) return 'SWELLエディター設定:装飾(カスタム書式)設定';
if ($k === 'custom_format_css') return 'SWELLエディター設定:装飾用の追加CSS(カスタム)';
if (in_array($k, ['blog_card_type','blog_card_type_ex'], true)) return 'SWELLエディター設定:ブログカード(内部/外部)のデザイン';
if ($k === 'blockquote_type') return 'SWELLエディター設定:引用(blockquote)デザイン';
if (str_starts_with($k, 'iconbox')) return 'SWELLエディター設定:アイコンボックスのスタイル';
return 'SWELLエディター設定:その他';
}
// swell_options[...]
if (preg_match('/^swell_options\[(.+)\]$/', $key, $m)) {
$k = $m[1];
if (str_starts_with($k, 'cache_')) return 'SWELL高速化:CSS/ヘッダー/サイドバー等のキャッシュ';
if (str_starts_with($k, 'delay_js')) return 'SWELL高速化:JS遅延読み込み(対象/除外/待機秒数)';
if ($k === 'lazy_type') return 'SWELL高速化:LazyLoad方式';
if (str_starts_with($k, 'use_')) return 'SWELL機能ON/OFF(構造化データ・PJAX等)';
if (str_starts_with($k, 'remove_')) return 'SWELL最適化:WP標準機能の無効化(絵文字/バージョン/rel等)';
if (str_starts_with($k, 'load_')) return 'SWELL読み込み設定:CSS/JS/Font Awesome等';
if ($k === 'fa_version') return 'SWELL:Font Awesome バージョン';
if (str_contains($k, 'ad_code') || str_contains($k, 'infeed') || str_contains($k, 'before_h2')) return 'SWELL広告/コード挿入(見出し前/インフィード等)';
if (str_starts_with($k, 'ld_org_')) return 'SWELL構造化データ:Organization 情報';
return 'SWELL設定:その他(パフォーマンス/機能)';
}
// その他 option
if ($key === 'swell_others') return 'SWELL内部フラグ(初期設定完了など)';
if ($key === 'swell_version') return 'SWELLテーマバージョン';
if ($key === 'sweller_email') return 'SWELL購入/ライセンス関連の登録メール(機微情報なので扱い注意)';
return 'wp_options:SWELL/LOOS関連(名称から判断)';
}
return '不明';
}
子テーマが必要かどうかの判断は、SWELLの子テーマは必要か|要るケースと要らないケースにまとめています。
この記事で紹介しているコードは、GitHubのMOTOKI-LLC/WAZA-codeにもまとめています。
出力したTSVを調査用に使う
TSV欄には読み取り専用の出力を表示します。
欄へフォーカスを移し、全選択してコピーした内容を手元の表計算ソフトなどへ貼り付け、section・key・value・noteの4列で対象キーを探します。
欄は設定を保存するための入力欄ではありません。
WordPress 7.1.2・SWELL 2.19.0の隔離環境で、管理者として実HTTPの出力画面を開き、検証用の設定キーが表とTSVの両方に出ることを確認しました。
TSVのコピー操作・編集画面からの導入・スマホでの操作は別途確認が必要です。
このTSVをインポート可能な設定バックアップとして扱わないでください。



