Hi
I use this function to remove some default block. Is there a way to add my custom blocks into the filtered list ? I've tried to add the id block, but it doesn't work.
Many thanks
function my_plugin_allowed_block_types( $allowed_block_types, $post ) {
return array(
'core/image',
'core/paragraph',
'core/heading',
'core/list',
'core/button',
'core/video',
'core/file',
'core/button',
'core/columns',
);
}
add_filter( 'allowed_block_types', 'my_plugin_allowed_block_types', 10, 2 );