/** * Class Constructor */ public function __construct() { $this->define_constant(); self::$donation_id = get_option(WC_QD_DB . 'product_id'); $this->define('WC_QD_ID', intval(get_option(WC_QD_DB . 'product_id'))); $this->load_required_files(); register_activation_hook(__FILE__, array('WC_QD_INSTALL', 'INIT')); add_action('init', array($this, 'init')); }