Created
October 22, 2020 12:20
-
-
Save bagerathan/25e0420e85a7a6da868c275fba16dbf4 to your computer and use it in GitHub Desktop.
Change order status #woo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_payment_complete_order_status', 'wc_auto_complete_paid_order', 10, 3 ); | |
function wc_auto_complete_paid_order( $status, $order_id, $order ) { | |
return 'completed'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment