Last active
January 19, 2021 09:36
-
-
Save kirstenschelper/2481d9144fc60acae49514bbb9c52f4b to your computer and use it in GitHub Desktop.
Eigene Block Pattern Kategorie erstellen
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
function netzialisten_register_block_categories() { | |
if ( class_exists( 'WP_Block_Patterns_Registry' ) ) { | |
register_block_pattern_category( | |
'Netzialisten', | |
array( 'label' => _x( 'Patterns Netzialisten', 'Block pattern category', 'netzialisten' ) ) | |
); | |
} | |
} | |
add_action( 'init', 'netzialisten_register_block_categories' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment