function upgrade($version) { if ($version < 1) { // Upgrade from version 0 (prior to Pressbooks\Taxonomy class) to version 1 (simplified chapter types) $this->upgradeChapterTypes(); flush_rewrite_rules(false); } }