Created
December 10, 2014 13:55
-
-
Save woogist/90107a071459b96afbc1 to your computer and use it in GitHub Desktop.
Mark order status as completed automatically
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_filter( 'woocommerce_payment_complete_order_status', 'wc_skip_processing' ); | |
function wc_skip_processing( $status, $order_id ) { | |
return 'completed'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment