From 39ba56eca63fcbaa6d3544b91d62f0be0b6acd53 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Mon, 8 Jul 2024 23:52:03 -0400 Subject: [PATCH] Fix crash on renewal.. ..again? --- wp-content/themes/mont58-coffee/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-content/themes/mont58-coffee/functions.php b/wp-content/themes/mont58-coffee/functions.php index 29590df..6c366a3 100644 --- a/wp-content/themes/mont58-coffee/functions.php +++ b/wp-content/themes/mont58-coffee/functions.php @@ -181,6 +181,8 @@ function action_wcs_renewal_order_created($order, $subscription) // Update the custom field "coffees" with the processed coffee data for the current renewal order update_field("coffees", $order_coffees, $order->get_ID()); } + + return $order; } // Hook the above function to the 'wcs_renewal_order_created' action add_action(