Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

group

// Register Custom Taxonomy
function project_taxonomy() {

	$labels = array(
		'name'                       => _x( 'گروه‌های', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'گروه', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'گروه', 'text_domain' ),
		'all_items'                  => __( 'تمامی گروه‌ها', 'text_domain' ),
		'parent_item'                => __( 'گروه والد', 'text_domain' ),
		'parent_item_colon'          => __( 'گروه والد:', 'text_domain' ),
		'new_item_name'              => __( 'افزودن گروه پروژه', 'text_domain' ),
		'add_new_item'               => __( 'افزودن گروه', 'text_domain' ),
		'edit_item'                  => __( 'ویرایش گروه', 'text_domain' ),
		'update_item'                => __( 'بروزرسانی گروه', 'text_domain' ),
		'separate_items_with_commas' => __( 'گروه‌ها را با کاما از هم جدا کنید', 'text_domain' ),
		'search_items'               => __( 'جستحجوی گروه', 'text_domain' ),
		'add_or_remove_items'        => __( 'افزودن یا حذف گروه‌ها', 'text_domain' ),
		'choose_from_most_used'      => __( 'انتخاب از گروه‌های بیشتر استفاده‌شده', 'text_domain' ),
		'not_found'                  => __( 'گروهی یافت نشد', 'text_domain' ),
	);
	$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( 'pcategory', array( '' ), $args );

}

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