WP Plugin
Enable Button Icons
Add icons to the core/button block

Type
WordPress Plugin
License
Open Source
Distributed via
GitHub Releases
Latest
v1.2.1
Requires
WP 6.9+, PHP 8.2+
01
What It Does
The WordPress Button block has always been limited when it comes to icons. You could fake it with emoji or wrestle with custom HTML, but there was no clean native way to add an icon alongside your button label.
This plugin adds a proper Icon panel to the block sidebar. Choose an icon, set its size, pick left or right. It renders sanitized inline SVG on the frontend with no extra requests.

use Bmd\EnableButtonIcons\Plugin;
$dependency_url = plugin_dir_url( __FILE__ ) . 'vendor/bmd/enable-button-icons/';
$dependency_path = plugin_dir_path( __FILE__ ) . 'vendor/bmd/enable-button-icons/';
$plugin = new Plugin(
$dependency_url,
$dependency_path
);
$plugin->mount();02
The Build
This started as a fork of Nick Diego’s original plugin. The core idea was solid, but the architecture needed a rewrite to match how I build things now.
It uses a service-based PHP architecture, a modern TypeScript build pipeline, and ships with a scoped GitHub updater so WordPress can pull new versions directly from releases. Install it as a standalone plugin or embed it as a Composer dependency inside your own project.
WP 6.9+
Webpack
SCSS
React
PHP 8.2+