ICON – Euroheat – Membership Directory – Organisation Type
// Register Custom Taxonomy
function membership_post_type_taxonomy() {
$labels = array(
'name' => 'Organisation Types',
'singular_name' => 'Organisation Type',
'menu_name' => 'Organisation Type',
'all_items' => 'All Organisation Types',
'parent_item' => 'Parent Organisation Type',
'parent_item_colon' => 'Parent Organisation Type:',
'new_item_name' => 'New Organisation Type Name',
'add_new_item' => 'Add New Organisation Type',
'edit_item' => 'Edit Organisation Type',
'update_item' => 'Update Organisation Type',
'view_item' => 'View Organisation Type',
'separate_items_with_commas' => 'Separate Organisation Types with commas',
'add_or_remove_items' => 'Add or remove Organisation Types',
'choose_from_most_used' => 'Choose from the most used',
'popular_items' => 'Popular Organisation Types',
'search_items' => 'Search Organisation Types',
'not_found' => 'Not Found',
'no_terms' => 'No Organisation Types',
'items_list' => 'Organisation Types list',
'items_list_navigation' => 'Organisation Types list navigation',
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'membership_directory_type', array( 'member' ), $args );
}
add_action( 'init', 'membership_post_type_taxonomy', 0 );