inc/registrar/helpers/MakeCalendarType.php
@@ -12,7 +12,7 @@ class MakeCalendarType { protected string $slug; protected string $postType; protected Registrar $registrar; private Registrar $registrar; public function __construct(string $slug, Registrar $registrar) { $this->slug = $slug; $this->postType = jvbCheckBase($slug); @@ -25,6 +25,13 @@ add_action('init', [$this, 'addCalendarRewrites']); } public function __debugInfo() { $vars = get_object_vars($this); unset($vars['registrar']); return $vars; } protected function addCalendarFields():void {