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/helpers/forms.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/inc/helpers/forms.php b/inc/helpers/forms.php
index c993381..6ef4899 100644
--- a/inc/helpers/forms.php
+++ b/inc/helpers/forms.php
@@ -1,10 +1,12 @@
<?php
+use JVBase\meta\Form;
+
if (!defined('ABSPATH')) {
exit;
}
-function jvbRenderForm(string $endpoint, array $fields, JVBase\meta\MetaManager $meta, array $options = [], bool $return = false):mixed
+function jvbRenderForm(string $endpoint, array $fields, array $options = [], bool $return = false):mixed
{
ob_start();
?>
@@ -18,7 +20,7 @@
}
foreach ($fields as $field => $config) {
- $meta->render('form', $field, $config);
+ echo Form::render($field, null, $config);
}
?>
<?= (jvbCheck('submit', $options)) ? '<button type="submit">'.jvbIcon('floppy-disk').'Save</button>' : '' ?>
--
Gitblit v1.10.0