EA Downloads Custom Tax
Registers custom taxonomy for Downloadable files
// Register Custom Taxonomy function create_downloads_taxonomy() { $labels = array( 'name' => _x( 'Download Categories', 'Taxonomy General Name', 'eadlcat' ), 'singular_name' => _x( 'Download Category', 'Taxonomy Singular Name', 'eadlcat' ), 'menu_name' => __( 'Download Category', 'eadlcat' ), 'all_items' => __( 'All Download Categories', 'eadlcat' ), 'parent_item' => __( '', 'eadlcat' ), 'parent_item_colon' => __( '', 'eadlcat' ), 'new_item_name' => __( 'New Download Category', 'eadlcat' ), 'add_new_item' => __( 'Add New Download Category', 'eadlcat' ), 'edit_item' => __( 'Edit Download Category', 'eadlcat' ), 'update_item' => __( 'Update Download Category', 'eadlcat' ), 'view_item' => __( 'View Download Category', 'eadlcat' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'eadlcat' ), 'add_or_remove_items' => __( 'Add or remove Download Categories', 'eadlcat' ), 'choose_from_most_used' => __( 'Choose from the most used Download Categories', 'eadlcat' ), 'popular_items' => __( 'Popular Download Categories', 'eadlcat' ), 'search_items' => __( 'Search Download Categories', 'eadlcat' ), 'not_found' => __( 'Not Found', 'eadlcat' ), 'no_terms' => __( 'No Download Categories', 'eadlcat' ), 'items_list' => __( 'Download Categories list', 'eadlcat' ), 'items_list_navigation' => __( 'Download Categories list navigation', 'eadlcat' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'update_count_callback' => '_update_generic_term_count', ); register_taxonomy( 'download_cat', array( 'download' ), $args ); } add_action( 'init', 'create_downloads_taxonomy', 0 );