recommenting $blocks

This commit is contained in:
Antoine M 2023-11-22 13:48:00 +01:00
parent 73be5583e3
commit 8f052556fb

View File

@ -163,13 +163,14 @@ function homegrade_allowed_block_types($allowed_blocks, $editor_context)
'homegrade-content-blocks/questions-container' 'homegrade-content-blocks/questions-container'
); );
} }
$blocks = WP_Block_Type_Registry::get_instance()->get_all_registered();
write_log($blocks);
return $allowed_blocks; return $allowed_blocks;
####ONLY DEREGISTER FEW BLOCKS ####ONLY DEREGISTER FEW BLOCKS
// get all the registered blocks // get all the registered blocks
// $blocks = WP_Block_Type_Registry::get_instance()->get_all_registered(); // $blocks = WP_Block_Type_Registry::get_instance()->get_all_registered();
// write_log($blocks);
// then disable some of them // then disable some of them
// unset($blocks['core/paragraph']); // unset($blocks['core/paragraph']);
// unset($blocks['core/heading']); // unset($blocks['core/heading']);