Adds an Inline icon format to the block editor toolbar. It works anywhere Rich Text allows formats (paragraphs, headings, buttons, lists, and more).
Icons come from the WordPress Icons API (the same library as the core/icon block), including collections registered by themes and plugins via wp_register_icon(). An optional Phosphor icon collection ships with the plugin and can be disabled from Settings or via a filter.
The format stores an icon name. On the front end, WordPress renders the SVG with wp_get_icon() so the icon inherits the surrounding text color.
wp_get_icon, wp_register_icon)This plugin ships SVG icons from Phosphor Icons, distributed via the @phosphor-icons/core package.
Phosphor Icons is licensed under the MIT License. Copyright (c) 2023 Phosphor Icons.