_x( 'Groups', 'Taxonomy general name', 'advanced-testimonial' ), 'singular_name' => _x( 'Group', 'Taxonomy singular name', 'advanced-testimonial' ), 'menu_name' => __( 'Groups', 'advanced-testimonial' ), 'all_items' => __( 'All Groups', 'advanced-testimonial' ), 'edit_item' => __( 'Edit Group', 'advanced-testimonial' ), 'view_item' => __( 'View Group', 'advanced-testimonial' ), 'update_item' => __( 'Update Group', 'advanced-testimonial' ), 'add_new_item' => __( 'Add New Group', 'advanced-testimonial' ), 'new_item_name' => __( 'New Group Name', 'advanced-testimonial' ), 'parent_item' => __( 'Parent Group', 'advanced-testimonial' ), 'parent_item_colon' => __( 'Parent Group:', 'advanced-testimonial' ), 'search_items' => __( 'Search Groups', 'advanced-testimonial' ), 'not_found' => __( 'No groups found.', 'advanced-testimonial' ), ); // Same treatment as the CPT itself (see CPT::register_post_type): the // group archives are thin duplicates too, so they follow the single // pages setting. `public` stays true for the admin UI. $single_pages = (bool) Settings::get( 'single_pages', 0 ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'publicly_queryable' => $single_pages, 'show_ui' => true, 'show_in_rest' => true, 'show_admin_column' => true, 'query_var' => $single_pages, 'rewrite' => $single_pages ? array( 'slug' => 'testimonial-group', 'with_front' => false, ) : false, ); register_taxonomy( self::TAXONOMY, array( CPT::POST_TYPE ), $args ); } }