Skip to content

Instantly share code, notes, and snippets.

@webdados
Created November 29, 2018 19:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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