Skip to content

Instantly share code, notes, and snippets.

@kirstenschelper
Last active January 19, 2021 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirstenschelper/2481d9144fc60acae49514bbb9c52f4b to your computer and use it in GitHub Desktop.
Save kirstenschelper/2481d9144fc60acae49514bbb9c52f4b to your computer and use it in GitHub Desktop.
Eigene Block Pattern Kategorie erstellen
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