Created
February 21, 2019 16:02
-
-
Save amielucha/10a8c65b318b4a4c49b87d0d3162848a to your computer and use it in GitHub Desktop.
WordPress Gutenberg - add custom block category
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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