WIP
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user