From be5a5a096cf3b6f88f710b099107a207a7c726b8 Mon Sep 17 00:00:00 2001 From: JoryHogeveen Date: Thu, 21 Sep 2017 15:50:26 +0200 Subject: [PATCH] Use the hook class in the main VAA class See #77 --- includes/class-vaa.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/includes/class-vaa.php b/includes/class-vaa.php index 105d7531..0444cb97 100644 --- a/includes/class-vaa.php +++ b/includes/class-vaa.php @@ -48,6 +48,14 @@ final class VAA_View_Admin_As */ private $notices = array(); + /** + * VAA Hooks. + * + * @since 1.8 + * @var VAA_View_Admin_As_Hooks + */ + private $hooks = null; + /** * VAA Store. * @@ -164,6 +172,10 @@ private function load() { 'file' => 'includes/class-base.php', 'class' => 'VAA_View_Admin_As_Base', ), + array( + 'file' => 'includes/class-hooks.php', + 'class' => 'VAA_View_Admin_As_Hooks', + ), array( 'file' => 'includes/class-settings.php', 'class' => 'VAA_View_Admin_As_Settings', @@ -213,6 +225,7 @@ private function load() { */ private function run() { + $this->hooks = new VAA_View_Admin_As_Hooks(); $this->store = VAA_View_Admin_As_Store::get_instance( $this ); $this->controller = VAA_View_Admin_As_Controller::get_instance( $this ); $this->view = VAA_View_Admin_As_View::get_instance( $this ); @@ -492,6 +505,17 @@ public function load_textdomain() { } } + /** + * Get the hooks class. + * + * @since 1.8 + * @access public + * @return VAA_View_Admin_As_Hooks + */ + public function hooks() { + return $this->hooks; + } + /** * Get the store class. *