From 3b3bd067d0ff2671fca2890c14428c97e1011a2b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 11 Feb 2026 03:20:21 +0000
Subject: [PATCH] =Hey guess what? Meta->set() and Meta->setAll() doesn't actually save the meta to the database. Went through the files and added a ->save() call after every set
---
inc/integrations/Square.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/inc/integrations/Square.php b/inc/integrations/Square.php
index 8c0f234..d889bfa 100644
--- a/inc/integrations/Square.php
+++ b/inc/integrations/Square.php
@@ -1887,6 +1887,7 @@
}
$meta->setAll($updates);
+ $meta->save();
// Trigger notification to customer if order is ready
if ($state === 'PREPARED') {
@@ -2338,6 +2339,7 @@
// Save all values at once
$meta->setAll($values_to_save);
+ $meta->save();
}
/**
@@ -3462,6 +3464,7 @@
'created_at' => current_time('mysql'),
'updated_at' => current_time('mysql')
]);
+ $meta->save();
// Index by Square order ID for quick webhook lookups
update_option(BASE . 'square_order_map_' . $order_data['square_order_id'], $order_post_id);
--
Gitblit v1.10.0