Skip to content

Instantly share code, notes, and snippets.

@nfsarmento
Last active October 30, 2018 14:38
Show Gist options
  • Save nfsarmento/76e0c91d59e8c508ccbe8e94d4fbf7a6 to your computer and use it in GitHub Desktop.
Save nfsarmento/76e0c91d59e8c508ccbe8e94d4fbf7a6 to your computer and use it in GitHub Desktop.
Add "Note to Customer" to the PDF invoice, this code needs WooCommerce PDF Invoices & Packing Slips plugin
/** Add "Note to Customer" to the PDF invoice, this code needs WooCommerce PDF Invoices & Packing Slips plugin
*
* https://www.nuno-sarmento..com
*/
add_action( 'wpo_wcpdf_after_order_details', 'ns_add_note_to_customer_to_PDF_invoice' );
function ns_add_note_to_customer_to_PDF_invoice() {
global $wpo_wcpdf;
$wpo_wcpdf->order_notes();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment