Closed basvandertogt closed 3 years ago
You can allow blocks with this hook:
add_filter( 'allowed_block_types', 'AllowBlockTypes' );
function AllowBlockTypes($allowed_blocks) {
return [
'core/image',
'core/video',
'core/paragraph',
'core/heading',
'core/list',
'acf/custom-block', // custom-block is block file name ( i.e custom-block.blade.php)
];
}
Tnx!
What is a proper way to hide the default Gutenberg Blocks in combination with this plugin?