Fix crash on renewal..
All checks were successful
continuous-integration/drone/push Build is passing

..again?
This commit is contained in:
3wc 2024-07-08 23:52:03 -04:00
parent d6004d6cb3
commit 39ba56eca6

View File

@ -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 the custom field "coffees" with the processed coffee data for the current renewal order
update_field("coffees", $order_coffees, $order->get_ID()); update_field("coffees", $order_coffees, $order->get_ID());
} }
return $order;
} }
// Hook the above function to the 'wcs_renewal_order_created' action // Hook the above function to the 'wcs_renewal_order_created' action
add_action( add_action(