inc/registrar/helpers/MakeTimelineType.php
@@ -12,11 +12,9 @@ class MakeTimelineType { protected string $slug; protected string $postType; protected Registrar $registrar; public function __construct(string $slug, Registrar $registrar) { public function __construct(string $slug) { $this->slug = $slug; $this->postType = jvbCheckBase($slug); $this->registrar = $registrar; add_action('template_redirect', [$this, 'redirectChildToParent']); }