Sometimes the function woocommerce_thankyou is not called
-
hello
i have added this hook
/** * Auto Complete all WooCommerce orders. */ function custom_woocommerce_auto_complete_order( $order_id ) { if ( ! $order_id ) { return; } $order = wc_get_order( $order_id ); $order->update_status( 'completed' ); } add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
Sometimes the function woocommerce_thankyou is not called, but sometimes works fine
thx
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Sometimes the function woocommerce_thankyou is not called’ is closed to new replies.