public function reset() { $this->settings->delete_settings(); // remove tables at the end to avoid errors in ST due to last actions invoked by hooks add_action('shutdown', array($this, 'remove_db_tables'), PHP_INT_MAX - 1); }