Skip to content

Instantly share code, notes, and snippets.

@amielucha
Created February 21, 2019 16:02
Show Gist options
  • Save amielucha/10a8c65b318b4a4c49b87d0d3162848a to your computer and use it in GitHub Desktop.
Save amielucha/10a8c65b318b4a4c49b87d0d3162848a to your computer and use it in GitHub Desktop.
WordPress Gutenberg - add custom block category
<?php
/**
* Add Custom Block Category.
*/
add_filter( 'block_categories', 'lightseek_add_block_category' );
function lightseek_add_block_category( $categories ) {
$categories[] = array(
'slug' => 'lightseek-blocks',
'title' => 'Lightseek Blocks'
);
return $categories;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment