Question regarding “woocommerce_new_order” hook
-
I’m using this code in my functions.php file:
function custom_woocommerce_order($order_id) { if (!$order_id) { return; } $order = wc_get_order($order_id); $order->update_status('processing'); } add_action('woocommerce_new_order', 'custom_woocommerce_order');
This code is working but it prevents new order email notifications from displaying ordered items. Is this a bug or is it supposed to work like that?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Question regarding “woocommerce_new_order” hook’ is closed to new replies.