remove core block styles from wordpress block editor

This commit is contained in:
2026-02-03 12:59:28 +00:00
parent 6db11b741a
commit 513c9c90a5

View File

@@ -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'));
}
});
});