Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Jwbch Felirat kategóriák

if ( ! function_exists( 'jwbch_tax' ) ) {

// Register Custom Taxonomy
function jwbch_tax() {

	$labels = array(
		'name'                       => _x( 'Kategóriák', 'Taxonomy General Name', 'jwbch' ),
		'singular_name'              => _x( 'Kategória', 'Taxonomy Singular Name', 'jwbch' ),
		'menu_name'                  => __( 'Felirat kategóriák', 'jwbch' ),
		'all_items'                  => __( 'Minden elem', 'jwbch' ),
		'parent_item'                => __( 'Szülő elem', 'jwbch' ),
		'parent_item_colon'          => __( 'Szülő elem:', 'jwbch' ),
		'new_item_name'              => __( 'Új kategória', 'jwbch' ),
		'add_new_item'               => __( 'Új kategória hozzáadása', 'jwbch' ),
		'edit_item'                  => __( 'Kategória szerkesztése', 'jwbch' ),
		'update_item'                => __( 'Kategória frissítése', 'jwbch' ),
		'separate_items_with_commas' => __( 'Elemek elválasztása vesszővel', 'jwbch' ),
		'search_items'               => __( 'Elemek keresése', 'jwbch' ),
		'add_or_remove_items'        => __( 'Elemek hozzáadása vagy törlése', 'jwbch' ),
		'choose_from_most_used'      => __( 'Válassz egyet a legtöbbet használtból', 'jwbch' ),
		'not_found'                  => __( 'Nem található', 'jwbch' ),
	);
	$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( 'jwbch_tax', array( 'kategoria', 'feliratok' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'jwbch_tax', 0 );

}