In Woocommerce, I need to call a function after than the client completed the billing form, but before the payment gateway. This function needs to use the billing form informations... Is there a Hook for that, and how can I retrieve the users infos ?
In Woocommerce, I need to call a function after than the client completed the billing form, but before the payment gateway. This function needs to use the billing form informations... Is there a Hook for that, and how can I retrieve the users infos ?
Share Improve this question asked Feb 11, 2020 at 15:50 Nathos8Nathos8 32 bronze badges1 Answer
Reset to default 0This action hook is performed after submission:
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) {
echo $order_id;
}