Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Manipulate client name for Invoicing with InvoiceXpress for WooCommerce documents
<?php
add_filter( 'invoicexpress_woocommerce_document_client_name', 'my_invoicexpress_woocommerce_document_client_name', 10, 3 );
function my_invoicexpress_woocommerce_document_client_name( $client_name, $order_object, $entity ) {
//Do whatever logic you want, using the $order_object and return the $client_name
$client_name = 'aaa '.$client_name.' bbb';
return $client_name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment