Created
December 14, 2018 09:40
-
-
Save webdados/7b6bf23a075223f1b2748fa008c4ca04 to your computer and use it in GitHub Desktop.
Add custom order status to the possible automatic issuing status on Invoicing with InvoiceXpress for WooCommerce Pro
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( 'invoicexpress_woocommerce_automatic_invoice_possible_status', function( $possible_status ) { | |
| $new_possible_status = array(); | |
| foreach ( $possible_status as $status ) { | |
| if ( $status == 'wc-completed' ) { | |
| // Add Picking before Completed | |
| $new_possible_status[] = 'wc-picking'; | |
| } | |
| $new_possible_status[] = $status; | |
| } | |
| return $new_possible_status; | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment