Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdados/80a5a2847f82b1ac53e1a151e82e0f46 to your computer and use it in GitHub Desktop.
Save webdados/80a5a2847f82b1ac53e1a151e82e0f46 to your computer and use it in GitHub Desktop.
Exclude document types from invoicing exclusions on "Invoicing with InvoiceXpress for WooCommerce - Exclude categories/tags extension"
<?php
add_filter( 'invoicexpress_woocommerce_exccat_exclude_types', function( $exclude_types ) {
//Return an array of document types where all items should be invoiced and not excluded by category or tag
return array(
'transport_guide'
);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment