Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Speltyp

// Register Custom Taxonomy
function custom_taxonomy_speltyp() {

	$labels = array(
		'name'                       => _x( 'Speltyper', 'Taxonomy General Name', 'pxlbrk' ),
		'singular_name'              => _x( 'Speltyp', 'Taxonomy Singular Name', 'pxlbrk' ),
		'menu_name'                  => __( 'Speltyp', 'pxlbrk' ),
		'all_items'                  => __( 'Alla speltyper', 'pxlbrk' ),
		'parent_item'                => __( 'Överordnad speltyp', 'pxlbrk' ),
		'parent_item_colon'          => __( 'Överordnad speltyp:', 'pxlbrk' ),
		'new_item_name'              => __( 'Ny speltyp', 'pxlbrk' ),
		'add_new_item'               => __( 'Lägg till ny speltyp', 'pxlbrk' ),
		'edit_item'                  => __( 'Redigera speltyp', 'pxlbrk' ),
		'update_item'                => __( 'Uppdatera speltyp', 'pxlbrk' ),
		'view_item'                  => __( 'Visa speltyp', 'pxlbrk' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'pxlbrk' ),
		'add_or_remove_items'        => __( 'Läggtill/tabort speltyp', 'pxlbrk' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'pxlbrk' ),
		'popular_items'              => __( 'Popular Items', 'pxlbrk' ),
		'search_items'               => __( 'Sök speltyp', 'pxlbrk' ),
		'not_found'                  => __( 'Not Found', 'pxlbrk' ),
		'no_terms'                   => __( 'No items', 'pxlbrk' ),
		'items_list'                 => __( 'Items list', 'pxlbrk' ),
		'items_list_navigation'      => __( 'Items list navigation', 'pxlbrk' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'speltyp', array( 'casino', 'spel', 'bonus' ), $args );

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