hooks.php in Timetics – Appointment Booking Calendar & Scheduling 1.0.38, at core/services/hooks.php
| 1 | <?php |
| 2 | /** |
| 3 | * Service hooks |
| 4 | * |
| 5 | * @package Timetics |
| 6 | */ |
| 7 | |
| 8 | namespace Timetics\Core\Services; |
| 9 | |
| 10 | use Timetics\Utils\Singleton; |
| 11 | use Timetics\Core\Services\Service_Taxonomy; |
| 12 | |
| 13 | /** |
| 14 | * Class Hooks |
| 15 | */ |
| 16 | class Hooks { |
| 17 | use Singleton; |
| 18 | |
| 19 | /** |
| 20 | * Store category |
| 21 | * |
| 22 | * @var Object |
| 23 | */ |
| 24 | protected $category; |
| 25 | /** |
| 26 | * Initialoze |
| 27 | * |
| 28 | * @return void |
| 29 | */ |
| 30 | public function init() { |
| 31 | add_action( 'init', array( $this, 'boot' ), 5); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Boot the service |
| 36 | * |
| 37 | * @return void |
| 38 | */ |
| 39 | public function boot() { |
| 40 | $this->category = new Service_Taxonomy(); |
| 41 | } |
| 42 | } |
| 43 |