Flashcard Set Category
category taxonomy for eslfc.
// Register Custom Taxonomy function eslfc_register_flashcard_category() { $labels = array( 'name' => _x( 'Flashcard Categories', 'Taxonomy General Name', 'eslfc' ), 'singular_name' => _x( 'Flashcard Category', 'Taxonomy Singular Name', 'eslfc' ), 'menu_name' => __( 'Flashcard Category', 'eslfc' ), 'all_items' => __( 'All Categories', 'eslfc' ), 'parent_item' => __( 'Parent Category', 'eslfc' ), 'parent_item_colon' => __( 'Parent Category:', 'eslfc' ), 'new_item_name' => __( 'New Category', 'eslfc' ), 'add_new_item' => __( 'Add New Category', 'eslfc' ), 'edit_item' => __( 'Edit Category', 'eslfc' ), 'update_item' => __( 'Update Category', 'eslfc' ), 'view_item' => __( 'View Category', 'eslfc' ), 'separate_items_with_commas' => __( 'Separate categories with commas', 'eslfc' ), 'add_or_remove_items' => __( 'Add or remove categories', 'eslfc' ), 'choose_from_most_used' => __( 'Choose from the most used', 'eslfc' ), 'popular_items' => __( 'Popular Categories', 'eslfc' ), 'search_items' => __( 'Search Categories', 'eslfc' ), 'not_found' => __( 'Not Found', 'eslfc' ), ); $rewrite = array( 'slug' => 'card-category', 'with_front' => true, 'hierarchical' => false, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'rewrite' => $rewrite, ); register_taxonomy( 'flashcard_category', array( 'flashcard_set' ), $args ); } // Hook into the 'init' action add_action( 'init', 'eslfc_register_flashcard_category', 0 );