From c4aa5cdb5e90ad4b420e22772797d16980232a2b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 15 Apr 2026 18:38:55 +0000
Subject: [PATCH] =Updating custom tables to utilize CustomTable.php

---
 inc/helpers/all.php |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/inc/helpers/all.php b/inc/helpers/all.php
index 5b7f02b..bd2d0a7 100644
--- a/inc/helpers/all.php
+++ b/inc/helpers/all.php
@@ -57,3 +57,12 @@
         update_option(BASE.'do_these_once', $options);
     }
 }
+
+
+function jvbResponse(bool $success, ?string $msg = null):array
+{
+	return [
+		'success'	=> $success,
+		'message'	=> is_null($msg) ? ($success ? 'Completed successfully' : 'Something went wrong') : $msg
+	];
+}

--
Gitblit v1.10.0