Answers for "find block styles gutenberg"

0

find block styles gutenberg

wp.domReady(() => {
	// find blocks styles
	wp.blocks.getBlockTypes().forEach((block) => {
		if (_.isArray(block['styles'])) {
			console.log(block.name, _.pluck(block['styles'], 'name'));
		}
	});
});
Posted by: Guest on September-03-2020

Browse Popular Code Answers by Language