// Wait for DOM to be ready before unregistering button styles document.addEventListener('DOMContentLoaded', () => { if (window.wp && window.wp.blocks) { wp.blocks.unregisterBlockStyle('core/button', 'outline'); wp.blocks.unregisterBlockStyle('core/button', 'fill'); } });