Woocommerce get order id in order page

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

Leave a Reply

Your email address will not be published. Required fields are marked *