Sometimes the function woocommerce_thankyou is not called
-
Sometimes the function woocommerce_thankyou is not called, but sometimes works fine. Our code is:
add_action(‘woocommerce_thankyou’, ‘send_order_information_for_delivery’, 999, 1);
function send_order_information_for_delivery($order_id)
{
$order = wc_get_order($order_id);
$order_items = $order->get_items();.
.
.
}Any idea why sometimes doesn’t work?
Thanks a lot!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Sometimes the function woocommerce_thankyou is not called’ is closed to new replies.