wpdb = $wpdb; $this->init(); } /** * initialize table names and other properties */ abstract function init(); public function createTables(){ require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); } }