Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

kategorie ofert

// Register Custom Taxonomy
function ct_kategorie_ofert() {

	$labels = array(
		'name'                       => _x( 'Kategorie ofert', 'Taxonomy General Name', 'rd' ),
		'singular_name'              => _x( 'Kategoria oferty', 'Taxonomy Singular Name', 'rd' ),
		'menu_name'                  => __( 'Kategorie ofert', 'rd' ),
		'all_items'                  => __( 'Wszystkie pozycje', 'rd' ),
		'parent_item'                => __( 'Nadrzędna pozycja', 'rd' ),
		'parent_item_colon'          => __( 'Nadrzędna pozycja:', 'rd' ),
		'new_item_name'              => __( 'Nazwa nowej pozycji', 'rd' ),
		'add_new_item'               => __( 'Dodaj nową pozycję', 'rd' ),
		'edit_item'                  => __( 'Edytuj pozycję', 'rd' ),
		'update_item'                => __( 'Aktualizuj pozycję', 'rd' ),
		'view_item'                  => __( 'Zobacz pozycję', 'rd' ),
		'separate_items_with_commas' => __( 'Oddziel pozycje przecinkami', 'rd' ),
		'add_or_remove_items'        => __( 'Dodaj / usuń pozycje', 'rd' ),
		'choose_from_most_used'      => __( 'Wybierz wśród najczęściej używanych', 'rd' ),
		'popular_items'              => __( 'Popularne pozycje', 'rd' ),
		'search_items'               => __( 'Szukaj pozycji', 'rd' ),
		'not_found'                  => __( 'Nie znaleziono', 'rd' ),
		'no_terms'                   => __( 'Brak pozycji', 'rd' ),
		'items_list'                 => __( 'Lista pozycji', 'rd' ),
		'items_list_navigation'      => __( 'Nawigacja listy pozycji', 'rd' ),
	);
	$capabilities = array(
		'manage_terms'               => 'manage_categories',
		'edit_terms'                 => 'manage_categories',
		'delete_terms'               => 'manage_categories',
		'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( 'kategorie_ofert', array( 'oferta-pracy' ), $args );

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