Skip to content

Instantly share code, notes, and snippets.

@webdados
Created November 29, 2018 19:57
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/c7e364f677558b4bcaa94fbf8a6e285b to your computer and use it in GitHub Desktop.
Save webdados/c7e364f677558b4bcaa94fbf8a6e285b to your computer and use it in GitHub Desktop.
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