Created
August 19, 2024 11:00
-
-
Save dennisnissle/d8a3291840f09f7a02d49646d42ce25d to your computer and use it in GitHub Desktop.
Decide whether an order needs billing (invoice) or not
This file contains 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_needs_billing', function( $needs_billing, $order ) { | |
// return false to prevent creating invoices for this order | |
return $needs_billing; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment