# timetics/1.0.13/core/services/service-taxonomy.php

Timetics – Appointment Booking Calendar &amp; Scheduling, version 1.0.13. 63 lines.

- Page: https://pluginprobe.com/plugins/timetics/1.0.13/code/core/services/service-taxonomy.php
- Raw: https://pluginprobe.com/plugins/timetics/1.0.13/raw/core/services/service-taxonomy.php
- Modified: 2023-11-05T06:29:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/timetics/1.0.13/code/core/services/service-taxonomy.php#L10-L20`.

```php
<?php
/**
 * Service Taxonomy
 *
 * @package Timetics
 */
namespace Timetics\Core\Services;

use Timetics\Base\Taxonomy;

/**
 * Service Taxonomy
 */
class Service_Taxonomy extends Taxonomy {

    /**
     * Set taxonomy props
     *
     * @return  void
     */
    public function set_props() {
        $this->name = 'timetics-service';
        $this->cpt  = 'timetics-appointment';

        $this->args = $this->taxonomy();
    }

    /**
     * Set taxonomy args
     *
     * @return  array
     */
    public function taxonomy() {
        $labels = [
            'name'              => esc_html__( 'Category', 'timetics' ),
            'singular_name'     => esc_html__( 'Category', 'timetics' ),
            'search_items'      => esc_html__( 'Search Category', 'timetics' ),
            'all_items'         => esc_html__( 'All Category', 'timetics' ),
            'parent_item'       => esc_html__( 'Parent Category', 'timetics' ),
            'parent_item_colon' => esc_html__( 'Parent Category:', 'timetics' ),
            'edit_item'         => esc_html__( 'Edit Category', 'timetics' ),
            'update_item'       => esc_html__( 'Update Category', 'timetics' ),
            'add_new_item'      => esc_html__( 'Add New Category', 'timetics' ),
            'new_item_name'     => esc_html__( 'New Category Name', 'timetics' ),
            'menu_name'         => esc_html__( 'Category', 'timetics' ),
        ];

        $args = [
            'hierarchical'      => true,
            'labels'            => $labels,
            'show_admin_column' => true,
            'public'            => true,
            'show_ui'           => false,
            'show_in_nav_menus' => false,
            'show_in_menu'      => false,
            'query_var'         => true,
            'show_in_rest'      => true,
        ];

        return $args;
    }
}

```
