- This topic has 1 reply, 2 voices, and was last updated 1 year ago by .
-
Topic
-
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 thanksfunction 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 );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.