Add value to existing WP Block Editor setting

Quick solution: Add a custom CSS class in the Buttons’ block properties under “Advanced > Additional CSS class(es)” then define the custom width in your theme style.css Detailed solution: By using wp.hooks.addFilter() you can add a new control to the Button block with as many extra custom width options as you need. The Button blocks preset widths are defined within the … Read more