I try to get the order id in my hook woocommerce_checkout_process in order page but i’ve no value, these are the method i tried :
add_action('woocommerce_checkout_process', 'is_cumul');
function is_cumul() {
print_r(WC()->order->id);
}
}
Thanks
Read more here: Woocommerce get order id in order page