<?php
// custom taxonomy used to store external connections data
//// if missing - creates main terms (connections will be sub-terms)


// register taxonomy
add_action('init', 'gg_conn_taxonomy');
function gg_conn_taxonomy() {
		
	$labels = array( 
        'name' => esc_html__('Connections', 'gg_ml'),
        'singular_name' => esc_html__( 'Connection', 'gg_ml' ),
        'search_items' => esc_html__( 'Search Connections', 'gg_ml' ),
        'popular_items' => NULL,
        'all_items' => esc_html__( 'All Connections', 'gg_ml' ),
        'parent_item' => esc_html__( 'Parent Connection', 'gg_ml' ),
        'parent_item_colon' => esc_html__( 'Parent Connection:', 'gg_ml' ),
        'edit_item' => esc_html__( 'Edit Connection', 'gg_ml' ),
        'update_item' => esc_html__( 'Update Connection', 'gg_ml' ),
        'add_new_item' => esc_html__( 'Add New Connection', 'gg_ml' ),
        'new_item_name' => esc_html__( 'New Connection', 'gg_ml' ),
        'separate_items_with_commas' => esc_html__( 'Separate item categories with commas', 'gg_ml' ),
        'add_or_remove_items' => esc_html__( 'Add or remove Connections', 'gg_ml' ),
        'choose_from_most_used' => esc_html__( 'Choose from most used Connections', 'gg_ml' ),
        'menu_name' => esc_html__( 'Connections', 'gg_ml' ),
    );

    $args = array( 
        'labels' => $labels,
        'public' => false,
        'show_in_nav_menus' => false,
        'show_ui' => false,
        'show_tagcloud' => false,
        'hierarchical' => true,
        'rewrite' => false,
        'query_var' => false
    );
    register_taxonomy('gg_connect_hub', null, $args);
}


