MainWP Community

Automatically complete processing orders in WooCommerce

Automatically complete processing orders if using WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_payment_complete_order_status', 'wc_autocomplete_processing_orders', 9999 );
 
function wc_autocomplete_processing_orders() {
   return 'completed';
}
1 Like