MainWP Community

Automatically set paid orders status to processing by default in WooCommerce

Automatically set paid orders status to processing by default in WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_action( 'woocommerce_payment_complete_order_status', 'wc_auto_complete_paid_order', 10, 3 );
function wc_auto_complete_paid_order( $status, $order_id, $order ) {
    return 'processing';
}
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.