Skip to content

Instantly share code, notes, and snippets.

@tuongpgjz
Last active March 4, 2021 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuongpgjz/26d7365e09e3fe290bff72fdd1240d9b to your computer and use it in GitHub Desktop.
Save tuongpgjz/26d7365e09e3fe290bff72fdd1240d9b to your computer and use it in GitHub Desktop.
Auto complete WooCommerce order after paid
/*
* 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