WordPress7.1で追加されたアイコンブロックですが、現段階では文章の中にインラインで挿入したり、テーブル内のセルに挿入したりすることはできません。
本ショートコードを使うことで、それらの場所にもWordPressコアで追加されたSVGアイコンや、任意にwp_register_icon_collection()とwp_register_icon()で追加したアイコンもこのショートコードで表示させることができるようになります。
本機能はHima Art Utilityのバージョン6.2以降で使用可能です
本機能は「追加コンテンツ」→「ショートコード」タブ→「HA Utilityショートコードを使う」を有効にすると使用できるようになり、ブロックツールバーからも簡単に挿入できるようになります。
ショートコードとパラメーター
以下がショートコードとパラメーターの役割です。
[ha-svg-icon-sc space="" slug="" class="" size="" label=""]
| パラメーター | 役割 | デフォルト (未指定または省略時) |
|---|---|---|
| space | SVGアイコンのグループ wp_register_icon_collection()の第一引数で指定した文字列 | core (WordPress標準のSVG) |
| slug | アイコンのスラグ(コアはこちらで調べられます) wp_register_icon()の第一引数で指定した文字列 | |
| class | 追加するCSSクラス | |
| size | アイコンの大きさ | 24 (ピクセル単位の数字のみ) |
| label | スクリーンリーダーで読み上げる際の文字列 (未指定の場合「aria-hidden=”true” と focusable=”false”」が付与されます) |
WordPress標準のSVGアイコン一覧
以下のアイコン一覧から「core」に〇がついているものは本ショートコードで表示できます。
ショートコード挿入後「SVGアイコン」に表示している文字列をショートコードの「slug」パラメーターへ入れてください。
※アイコンスラグの左に実際のアイコンを表示しています
※「core-admin」グループのみ〇の付いているアイコンは管理画面専用なのでここでは表示されません
※「core」グループのみ〇の付いているアイコンは表示画面専用なので管理画面では利用できません
アイコンの一覧は2026年11月10日現在のものです。現在使用できるアイコンについてはこちらのGitHub上のソースを参考にしてください。
| core-admin | core | SVGアイコン | ダッシュアイコン | ||
|---|---|---|---|---|---|
| 〇 | 〇 | arrow-down | dashicons-arrow-down-alt | ||
| 〇 | arrow-down-left | ||||
| 〇 | arrow-down-right | ||||
| 〇 | 〇 | arrow-left | dashicons-arrow-left-alt | ||
| 〇 | 〇 | arrow-right | dashicons-arrow-right-alt | ||
| 〇 | 〇 | arrow-up | dashicons-arrow-up-alt | ||
| 〇 | arrow-up-left | ||||
| 〇 | arrow-up-right | ||||
| 〇 | asterisk | dashicons-marker | |||
| 〇 | at-symbol | ||||
| 〇 | 〇 | audio | dashicons-format-audio | ||
| 〇 | 〇 | bell | dashicons-bell | ||
| 〇 | 〇 | block-default | dashicons-block-default | ||
| 〇 | block-meta | ||||
| 〇 | block-table | ||||
| 〇 | brush | dashicons-admin-appearance | |||
| 〇 | 〇 | calendar | dashicons-calendar-alt dashicons-calendar | ||
| 〇 | 〇 | capture-photo | dashicons-camera dashicons-camera-alt | ||
| 〇 | 〇 | capture-video | dashicons-video-alt2 dashicons-video-alt | ||
| 〇 | 〇 | cart | dashicons-cart | ||
| 〇 | 〇 | category | dashicons-category | ||
| 〇 | 〇 | caution | dashicons-warning | ||
| 〇 | 〇 | chart-bar | dashicons-chart-bar | ||
| 〇 | 〇 | check | dashicons-yes | ||
| 〇 | 〇 | chevron-down | dashicons-arrow-down-alt2 | ||
| 〇 | 〇 | chevron-down-small | dashicons-arrow-down | ||
| 〇 | 〇 | chevron-left | dashicons-admin-collapse dashicons-arrow-left-alt2 | ||
| 〇 | 〇 | chevron-left-small | dashicons-arrow-left | ||
| 〇 | 〇 | chevron-right | dashicons-arrow-right-alt2 | ||
| 〇 | 〇 | chevron-right-small | dashicons-arrow-right | ||
| 〇 | 〇 | chevron-up | dashicons-arrow-up-alt2 | ||
| 〇 | chevron-up-down | ||||
| 〇 | 〇 | chevron-up-small | dashicons-arrow-up | ||
| 〇 | 〇 | comment | dashicons-admin-comments | ||
| 〇 | 〇 | cover | |||
| 〇 | create | ||||
| 〇 | dashboard | ||||
| 〇 | 〇 | desktop | dashicons-desktop | ||
| 〇 | 〇 | download | dashicons-download | ||
| 〇 | drawer-left | ||||
| 〇 | drawer-right | ||||
| 〇 | 〇 | envelope | dashicons-email dashicons-email-alt dashicons-email-alt2 | ||
| 〇 | 〇 | error | dashicons-dismiss | ||
| 〇 | 〇 | external | dashicons-external | ||
| 〇 | file | ||||
| 〇 | 〇 | gallery | dashicons-format-gallery | ||
| 〇 | group | ||||
| 〇 | 〇 | heading | dashicons-heading | ||
| 〇 | 〇 | help | dashicons-editor-help | ||
| 〇 | 〇 | home | dashicons-admin-home | ||
| 〇 | 〇 | image | dashicons-format-image | ||
| 〇 | 〇 | info | dashicons-info dashicons-info-outline | ||
| 〇 | 〇 | key | dashicons-admin-network | ||
| 〇 | 〇 | language | dashicons-translation | ||
| 〇 | link | dashicons-admin-links dashicons-format-links | |||
| 〇 | 〇 | map-marker | dashicons-location dashicons-location-alt | ||
| 〇 | media | dashicons-admin-media | |||
| 〇 | 〇 | menu | dashicons-menu-alt dashicons-menu dashicons-menu-alt2 dashicons-menu-alt3 | ||
| 〇 | 〇 | mobile | dashicons-smartphone | ||
| 〇 | 〇 | more-horizontal | dashicons-ellipsis | ||
| 〇 | more-vertical | ||||
| 〇 | 〇 | next | dashicons-controls-forward | ||
| 〇 | page | dashicons-admin-page | |||
| 〇 | 〇 | paragraph | dashicons-editor-paragraph | ||
| 〇 | 〇 | payment | |||
| 〇 | 〇 | pencil | dashicons-edit dashicons-edit-large | ||
| 〇 | 〇 | people | dashicons-admin-users dashicons-groups | ||
| 〇 | pin | dashicons-admin-post dashicons-format-standard | |||
| 〇 | plugins | dashicons-admin-plugins | |||
| 〇 | 〇 | plus | dashicons-plus dashicons-plus-alt2 | ||
| 〇 | 〇 | plus-circle | dashicons-plus-alt | ||
| 〇 | 〇 | post-comments | dashicons-format-chat | ||
| 〇 | 〇 | previous | dashicons-controls-back | ||
| 〇 | 〇 | published | dashicons-yes-alt | ||
| 〇 | 〇 | quote | dashicons-format-quote dashicons-editor-quote | ||
| 〇 | 〇 | receipt | |||
| 〇 | 〇 | rss | dashicons-rss | ||
| 〇 | scheduled | ||||
| 〇 | 〇 | search | dashicons-search | ||
| 〇 | 〇 | settings | dashicons-admin-settings | ||
| 〇 | shadow | ||||
| 〇 | 〇 | share | dashicons-share dashicons-share1 | ||
| 〇 | 〇 | shield | dashicons-shield dashicons-shield-alt | ||
| 〇 | 〇 | shuffle | dashicons-randomize | ||
| 〇 | sites | dashicons-admin-multisite | |||
| 〇 | 〇 | star-empty | dashicons-star-empty | ||
| 〇 | 〇 | star-filled | dashicons-star-filled | ||
| 〇 | 〇 | star-half | dashicons-star-half | ||
| 〇 | 〇 | store | dashicons-store | ||
| 〇 | styles | ||||
| 〇 | symbol | ||||
| 〇 | symbol-filled | ||||
| 〇 | 〇 | table | dashicons-editor-table | ||
| 〇 | 〇 | tablet | dashicons-tablet | ||
| 〇 | 〇 | tag | dashicons-tag | ||
| 〇 | 〇 | tip | dashicons-lightbulb | ||
| 〇 | tool | dashicons-admin-tools | |||
| 〇 | update | dashicons-update dashicons-update-alt | |||
| 〇 | 〇 | upload | dashicons-upload | ||
| 〇 | verse | ||||
| 〇 | wordpress | dashicons-wordpress |
バージョン6.0以降をお使いの方は、プラグイン一覧画面に更新情報が表示されますので、そこから更新を行ってください
最新バージョン 6.1 (2026年 5月21日リリース)
累計ダウンロード数:1回

コメントを残す