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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: