Reciter Taxonomy
Register Reciter Taxonomy
// Register Custom Taxonomy function reciter_taxonomy() { $labels = array( 'name' => _x( 'Reciters', 'Taxonomy General Name', 'quran-library' ), 'singular_name' => _x( 'Reciter', 'Taxonomy Singular Name', 'quran-library' ), 'menu_name' => __( 'Reciter', 'quran-library' ), 'all_items' => __( 'All Reciters', 'quran-library' ), 'parent_item' => __( 'Parent Reciter', 'quran-library' ), 'parent_item_colon' => __( 'Parent Reciter:', 'quran-library' ), 'new_item_name' => __( 'New Reciter Name', 'quran-library' ), 'add_new_item' => __( 'Add New Reciter', 'quran-library' ), 'edit_item' => __( 'Edit Reciter', 'quran-library' ), 'update_item' => __( 'Update Reciter', 'quran-library' ), 'view_item' => __( 'View Reciter', 'quran-library' ), 'separate_items_with_commas' => __( 'Separate Reciters with commas', 'quran-library' ), 'add_or_remove_items' => __( 'Add or Remove Reciters', 'quran-library' ), 'choose_from_most_used' => __( 'Choose from the most used Reciters', 'quran-library' ), 'popular_items' => __( 'Popular Reciters', 'quran-library' ), 'search_items' => __( 'Search Reciters', 'quran-library' ), 'not_found' => __( 'No Reciters Found', 'quran-library' ), 'no_terms' => __( 'No Reciters', 'quran-library' ), 'items_list' => __( 'Reciters List', 'quran-library' ), 'items_list_navigation' => __( 'Reciters List Navigation', 'quran-library' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'show_in_rest' => true, ); register_taxonomy( 'reciters', array( 'mushaf' ), $args ); } add_action( 'init', 'reciter_taxonomy', 0 );