/** * Inits loaded Class */ private function init_class() { self::$db = new WooCommerce_Quick_Donation_DB(); self::$f = new WooCommerce_Quick_Donation_Functions(); self::$email = new WooCommerce_Quick_Donation_Emails_Functions(); self::$settings = new WooCommerce_Quick_Donation_Settings(); if ($this->is_request('frontend')) { self::$shortcode = new WooCommerce_Quick_Donation_Shortcode(); $this->donation = new WooCommerce_Quick_Donation_Process(); $this->my_account = new WooCommerce_Quick_Donation_MyAccount_Fuctions(); } if ($this->is_request('admin')) { self::$admin = new WooCommerce_Quick_Donation_Admin(); } }