Create Custom Gutenberg Block Category

/* Add to functions.php */ function my_custom_block_category( $categories, $post ) { return array_merge( $categories, array( array( 'slug' => 'video-blocks', 'title' => __( 'Video Blocks', 'video-blocks' ), ), ) ); } add_filter( 'block_categories', 'my_custom_block_category', 10, 2); // Where $priority is 10, $accepted_args is 2.
This WP filter will create a new Block Category Video Blocks

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.