Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add custom order status to the possible automatic issuing status on Invoicing with InvoiceXpress for WooCommerce Pro
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