I want to send the values in the checkout form to my custom table in wordpress after customer clicks on the place order button. As i understood that happens through the woocommerce_checkout_order_review function. But i want to know how to do this in a proper way. Can please anybody suggest me a way to do this.
you will need to add an action to woocommerce_checkout_process.
an example would be:
add_action('woocommerce_checkout_process', 'send_data_to_another_table');
function send_data_to_another_table() {
//Your Code Here
}
Within the function you will need to insert the data in to your wordpress table.