Last active
March 4, 2021 17:18
-
-
Save tuongpgjz/26d7365e09e3fe290bff72fdd1240d9b to your computer and use it in GitHub Desktop.
Auto complete WooCommerce order after paid
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
/* | |
* skip the processing status for selling digital products on WooCommerce. Put this code into your theme functions.php or a plugin. | |
*/ | |
//SalesNudge.io | |
add_filter( 'woocommerce_payment_complete_order_status', 'salesnudge_skip_processing', 10, 1 ); | |
function salesnudge_skip_processing( $stt = '' ){ | |
return 'completed'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment