function generate_args_taxonomy($judul_taxonomy, $tampilkan_herearki, $nama_slug, $query_var){
return array(
'hierarchical' => $tampilkan_hirearki,
'labels' => array(
'name' => _x($judul_taxonomy, 'taxonomy general name', 'textdomain'),
'singular_name' => _x($judul_taxonomy, 'taxonomy singular name', 'textdomain'),
'search_items' => __('Search ' . $judul_taxonomy, 'textdomain' ),
'all_items' => __('All '. $judul_taxonomy, 'textdomain' ),
'parent_item' => __('Parent ' . $judul_taxonomy, 'textdomain' ),
'parent_item_colon' => __('Parent '. $judul_taxonomy . ':', 'textdomain' ),
'edit_item' => __('Edit ' . $judul_taxonomy, 'textdomain' ),
'update_item' => __('Update ' . $judul_taxonomy, 'textdomain' ),
'add_new_item' => __('Add New ' . $judul_taxonomy, 'textdomain' ),
'new_item_name' => __('New ' . $judul_taxonomy . ' Name', 'textdomain' ),
'menu_name' => __($judul_taxonomy, 'textdomain'),
),
'show_ui' => true,
'show_admin_column' => true,
'public' => true,
'has_archive' => true,
'publicly_queryable'=> true,
'query_var' => $query_var,
'rewrite' => array(
'slug' => $nama_slug,
'with_front'=> false
),
);
}