PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.0
Timetics – Appointment Booking Calendar & Scheduling v1.0.0
1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 All 62 releases
timetics / core / services / service-taxonomy.php

service-taxonomy.php in Timetics – Appointment Booking Calendar & Scheduling 1.0.0, at core/services/service-taxonomy.php

63 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Service Taxonomy
4 *
5 * @package Timetics
6 */
7 namespace Timetics\Core\Services;
8
9 use Timetics\Base\Taxonomy;
10
11 /**
12 * Service Taxonomy
13 */
14 class Service_Taxonomy extends Taxonomy {
15
16 /**
17 * Set taxonomy props
18 *
19 * @return void
20 */
21 public function set_props() {
22 $this->name = 'timetics-service';
23 $this->cpt = 'timetics-appointment';
24
25 $this->args = $this->taxonomy();
26 }
27
28 /**
29 * Set taxonomy args
30 *
31 * @return array
32 */
33 public function taxonomy() {
34 $labels = [
35 'name' => esc_html__( 'Category', 'timetics' ),
36 'singular_name' => esc_html__( 'Category', 'timetics' ),
37 'search_items' => esc_html__( 'Search Category', 'timetics' ),
38 'all_items' => esc_html__( 'All Category', 'timetics' ),
39 'parent_item' => esc_html__( 'Parent Category', 'timetics' ),
40 'parent_item_colon' => esc_html__( 'Parent Category:', 'timetics' ),
41 'edit_item' => esc_html__( 'Edit Category', 'timetics' ),
42 'update_item' => esc_html__( 'Update Category', 'timetics' ),
43 'add_new_item' => esc_html__( 'Add New Category', 'timetics' ),
44 'new_item_name' => esc_html__( 'New Category Name', 'timetics' ),
45 'menu_name' => esc_html__( 'Category', 'timetics' ),
46 ];
47
48 $args = [
49 'hierarchical' => true,
50 'labels' => $labels,
51 'show_admin_column' => true,
52 'public' => true,
53 'show_ui' => false,
54 'show_in_nav_menus' => false,
55 'show_in_menu' => false,
56 'query_var' => true,
57 'show_in_rest' => true,
58 ];
59
60 return $args;
61 }
62 }
63