From ba1e1ccf869b818f7a7a897264dfea05563a7796 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 07 Jun 2026 20:10:20 +0000
Subject: [PATCH] =Major overhaul of Integrations. Playing around with adding fields to post types through Registrar from an integrations' class file.
---
inc/registrar/helpers/MakeCalendarType.php | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/inc/registrar/helpers/MakeCalendarType.php b/inc/registrar/helpers/MakeCalendarType.php
index 5ca3bf7..be83235 100644
--- a/inc/registrar/helpers/MakeCalendarType.php
+++ b/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
{
@@ -115,13 +122,11 @@
'max_participants' => [
'type' => 'number',
'label' => __('Maximum Participants', 'jvb'),
- 'bulkEdit'=> true,
],
'is_free' => [
'type' => 'true_false',
'label' => 'Free Event?',
'default' => 1,
- 'bulkEdit'=> true,
],
'cost' => [
'type' => 'number',
@@ -132,7 +137,6 @@
'operator' => '!=',
'value' => 1
],
- 'bulkEdit'=> true,
],
'ticket_url' => [
'type' => 'url',
@@ -151,7 +155,6 @@
'type' => 'true_false',
'label' => 'Drop-ins Welcome?',
'default' => true,
- 'bulkEdit'=> true,
],
'recurrence' => [
'type' => 'group',
--
Gitblit v1.10.0