add_action( 'woocommerce_order_status_processing', 'custom_autocomplete_order' ); function custom_autocomplete_order( $order_id ) { if ( ! $order_id ) { return; } $order = wc_get_order( $order_id ); $order->update_status( 'completed' ); } Skip to main content

You may be interested in…

Your cart is currently empty!


New in store