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(