This commit is contained in:
2025-05-06 08:59:11 -07:00
parent 628f4b8a2e
commit 92a5ea7874
2 changed files with 9 additions and 1 deletions

View File

@@ -321,6 +321,9 @@ class Site
$this->cptSlugs[] = $cpt["slug"];
$options = $cpt['options'] ?? [];
if (isset($cpt["archive"]) && $cpt["archive"]) {
$options["has_archive"] = $this->humanize($cpt["slug"], true);
}
$names = $this->generateLabels($cpt['slug']);
$newCpt = new PostType($cpt['slug'], $options, $names);