PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.3
Booktics – Appointment Booking Calendar for Service Businesses v1.0.3
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 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.2 1.0.3 All 31 releases
booktics / base / abstracts / taxonomy.php

taxonomy.php in Booktics – Appointment Booking Calendar for Service Businesses 1.0.3, at base/abstracts/taxonomy.php

37 lines 668 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Booktics\Abstracts;
4
5 abstract class Taxonomy {
6
7 /**
8 * Register the taxonomy using WordPress register_taxonomy function
9 *
10 * @return void
11 */
12 public function register() {
13 register_taxonomy( $this->get_name(), $this->get_obj_type(), $this->get_args() );
14 }
15
16 /**
17 * Get taxonomy name
18 *
19 * @return string
20 */
21 abstract public function get_name();
22
23 /**
24 * Get taxonomy object type
25 *
26 * @return string|array
27 */
28 abstract public function get_obj_type();
29
30 /**
31 * Get taxonomy arguments
32 *
33 * @return array
34 */
35 abstract public function get_args();
36 }
37