function __construct()
 {
     parent::__construct();
     add_action('woocommerce_checkout_update_order_meta', array($this, 'save_order_id_db'), 1);
     add_action('pre_get_posts', array($this, 'add_doantion_via_link'));
     add_action('wp_loaded', array($this, 'on_wp_loaded'), 20);
     add_filter('woocommerce_get_price', array($this, 'get_price'), 10, 2);
 }
 /**
  * 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();
     }
 }