Skip to content

Gutenberg Miscellaneous

Imran Sayed edited this page Sep 20, 2021 · 2 revisions

Find blocks styles

	wp.blocks.getBlockTypes().forEach((block) => {
		if (_.isArray(block['styles'])) {
			console.log(block.name, _.pluck(block['styles'], 'name'));
		}
	});```
Clone this wiki locally