includes(); $this->init(); } /** * Load class files. * * @return void */ private function includes() { require_once KASP_PLUGIN_DIR . 'includes/class-kasp-settings.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-api-client.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-connect.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-woo.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-front-i18n.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-store-placements.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-help-center.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-sync.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-rest.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-embed.php'; require_once KASP_PLUGIN_DIR . 'includes/class-kasp-admin.php'; } /** * Instantiate components and register their hooks. * * @return void */ private function init() { $this->api = new Kasp_Api_Client(); $this->connect = new Kasp_Connect( $this->api ); $this->sync = new Kasp_Sync( $this->api ); $this->rest = new Kasp_Rest( $this->api, $this->sync, $this->connect ); $this->embed = new Kasp_Embed(); $this->admin = new Kasp_Admin(); $this->placements = new Kasp_Store_Placements( $this->embed ); $this->help_center = new Kasp_Help_Center( $this->api, $this->embed ); $this->placements->register(); $this->help_center->register(); $this->connect->register(); $this->sync->register(); $this->rest->register(); $this->embed->register(); $this->admin->register(); } // Translations: WordPress >= 4.6 loads them itself for the `helpo` text // domain from the plugin directory's language packs, so there is no // load_plugin_textdomain() call (the plugin directory flags it as // discouraged). languages/helpo.pot is the template translators start from. }