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