Skip to content

Instantly share code, notes, and snippets.

@woogist
Created December 10, 2014 13:55
Show Gist options
  • Save woogist/90107a071459b96afbc1 to your computer and use it in GitHub Desktop.
Save woogist/90107a071459b96afbc1 to your computer and use it in GitHub Desktop.
Mark order status as completed automatically
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