Taxonomies

Last Updated: August 20, 2021
 register_taxonomy('appointment_status', $this->fields['post_type'], array(
                'labels' => array(
                    'name' => _x('Status', 'taxonomy general name'),
                    'singular_name' => _x('Topic', 'taxonomy singular name'),
                    'search_items' => __('Search Topics'),
                    'popular_items' => __('Popular Topics'),
                    'all_items' => __('All Topics'),
                    'parent_item' => null,
                    'parent_item_colon' => null,
                    'edit_item' => __('Edit Topic'),
                    'update_item' => __('Update Topic'),
                    'add_new_item' => __('Add New Topic'),
                    'new_item_name' => __('New Topic Name'),
                    'separate_items_with_commas' => __('Separate topics with commas'),
                    'add_or_remove_items' => __('Add or remove topics'),
                    'choose_from_most_used' => __('Choose from the most used topics'),
                    'menu_name' => __('Status'),
                ),
                'public' => true,
                'has_archive' => false,

                'hierarchical' => true,

                'show_ui' => true,
                'show_in_rest' => true,
                'show_admin_column' => true,
                'query_var' => true,
                'rewrite' => array('slug' => 'appointment_status'),
            ));