Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Kapitel

if ( ! function_exists( 'ct_savebook_premium' ) ) {

// Register Custom Taxonomy
function ct_savebook_premium() {

	$labels = array(
		'name'                       => _x( 'Premium', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Premium', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Premium', 'text_domain' ),
		'all_items'                  => __( 'Alle Einträge', 'text_domain' ),
		'parent_item'                => __( 'Eltern', 'text_domain' ),
		'parent_item_colon'          => __( 'Eltern', 'text_domain' ),
		'new_item_name'              => __( 'Name', 'text_domain' ),
		'add_new_item'               => __( 'Neuen Eintrag erfassen', 'text_domain' ),
		'edit_item'                  => __( 'Eintrag bearbeiten', 'text_domain' ),
		'update_item'                => __( 'Eintrag aktualisieren', 'text_domain' ),
		'view_item'                  => __( 'Eintrag ansehen', 'text_domain' ),
		'separate_items_with_commas' => __( 'Mit Komas unterteilen', 'text_domain' ),
		'add_or_remove_items'        => __( 'Eintrag hinzufügen oder entfernen', 'text_domain' ),
		'choose_from_most_used'      => __( 'Meistbenutzte Einträge', 'text_domain' ),
		'popular_items'              => __( 'Beliebteste Einträge', 'text_domain' ),
		'search_items'               => __( 'Einträge suchen', 'text_domain' ),
		'not_found'                  => __( 'Nicht gefunden', 'text_domain' ),
		'no_terms'                   => __( 'Keine Einträge', 'text_domain' ),
		'items_list'                 => __( 'Liste', 'text_domain' ),
		'items_list_navigation'      => __( 'Navigation', 'text_domain' ),
	);
	$capabilities = array(
		'manage_terms'               => 'activate_plugins',
		'edit_terms'                 => 'activate_plugins',
		'delete_terms'               => 'activate_plugins',
		'assign_terms'               => 'edit_posts',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'capabilities'               => $capabilities,
	);
	register_taxonomy( 'Premium', array( 'savebook' ), $args );

}
add_action( 'init', 'ct_savebook_premium', 0 );

}