Open Shamim-Aktar opened 4 years ago
const currentCategories = select('core/blocks').getCategories().filter(item => item.slug !== category.slug); dispatch('core/blocks').setCategories([ category, ...currentCategories ]);
// Registering the new block registerBlockType(${category.slug}/my-first-block, myFirstBlock);
${category.slug}/my-first-block
using this how we can register another block please help
const currentCategories = select('core/blocks').getCategories().filter(item => item.slug !== category.slug); dispatch('core/blocks').setCategories([ category, ...currentCategories ]);
// Registering the new block registerBlockType(
${category.slug}/my-first-block
, myFirstBlock);using this how we can register another block please help