Created
November 29, 2018 19:57
-
-
Save webdados/c7e364f677558b4bcaa94fbf8a6e285b to your computer and use it in GitHub Desktop.
Manipulate client name for Invoicing with InvoiceXpress for WooCommerce documents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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