From 32ce5c542c90be348895328078e392dde2052957 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 04 Sep 2026 19:15:16 +0000
Subject: [PATCH] =Working at adding defined fields to a dedicated panel in the gutenberg editor. Registrar now has AddCustomFields.php, which currently only supports post fields. Added a @wordpress/plugins base _meta/fields in /build and /src that successfully creates a panel. Next steps: determine sections and fields, group fields by section (each section to a panel), and save output
---
inc/rest/routes/OptionsRoutes.php | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/inc/rest/routes/OptionsRoutes.php b/inc/rest/routes/OptionsRoutes.php
index 06d4ba9..8795437 100644
--- a/inc/rest/routes/OptionsRoutes.php
+++ b/inc/rest/routes/OptionsRoutes.php
@@ -1,13 +1,11 @@
<?php
namespace JVBase\rest\routes;
-use JVBase\base\Options;
+use JVBase\base\options;
use JVBase\Instance;
-use JVBase\registrar\Registrar;
+use JVBase\managers\queue\Queue;
use JVBase\rest\PermissionHandler;
use JVBase\rest\Rest;
-use JVBase\managers\Cache;
-use JVBase\meta\Meta;
use JVBase\rest\Route;
use WP_REST_Request;
use WP_REST_Response;
@@ -83,7 +81,7 @@
'success' => []
];
- Options::setAll($data['changes']);
+ options::setAll($data['changes']);
// foreach ($data as $field => $value) {
// if (array_key_exists($field, $fields)) {
// $success = $meta->updateValue($field, $value);
--
Gitblit v1.10.0