| @@ -6,8 +6,10 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace Timetics\Core\Services; |
| 9 | 9 | |
| 10 | +defined( 'ABSPATH' ) || exit; | |
| 11 | + | |
| 10 | 12 | use Timetics\Utils\Singleton; |
| 11 | 13 | use Timetics\Core\Services\Service_Taxonomy; |
| 12 | 14 | |
| 13 | 15 | /** |
| @@ -27,7 +29,16 @@ | ||
| 27 | 29 | * |
| 28 | 30 | * @return void |
| 29 | 31 | */ |
| 30 | 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() { | |
| 31 | 42 | $this->category = new Service_Taxonomy(); |
| 32 | 43 | } |
| 33 | 44 | } |