/** * Upgrades all the old forms in the database to include the new fields and settings introduced in the version. **/ public function upgrade_forms() { $this->set_defaults(); foreach ($this->post_types as $type) { $this->db->upgrade_forms($this->defaults['fields'][$type], $this->defaults['settings'], $this->defaults['emails'], $this->defaults['custom_field'], $type); } }