From 391a522900ed3f37d2ffe0e5abe8a8efc61ef8d4 Mon Sep 17 00:00:00 2001 From: Steve Ross Date: Tue, 3 Feb 2026 12:59:28 +0000 Subject: [PATCH] remove core block styles from wordpress block editor --- resources/js/editor.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/js/editor.js b/resources/js/editor.js index f984744a..1d6aa29b 100644 --- a/resources/js/editor.js +++ b/resources/js/editor.js @@ -17,4 +17,11 @@ domReady(() => { 'badegg/restrict-parent-blocks', restrictEditorParentBlocks ); + + // find blocks styles + wp.blocks.getBlockTypes().forEach((block) => { + if (_.isArray(block['styles'])) { + console.log('editor.js ' + block.name, _.pluck(block['styles'], 'name')); + } + }); });