Last active
July 14, 2025 06:38
-
-
Save dennisnissle/6274616478b7f80d65c43071c05a8ac8 to your computer and use it in GitHub Desktop.
Prevent invoices which are paid by invoice from being marked as paid when order is completed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'storeabill_woo_order_is_paid', function( $is_paid, $order ) { | |
| if ( 'invoice' === $order->get_payment_method() ) { | |
| $is_paid = false; | |
| } | |
| return $is_paid; | |
| }, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment