Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created April 8, 2024 05:23
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 webtoffee-git/4f5e1919d41f9d599fd9a589dbe60097 to your computer and use it in GitHub Desktop.
Save webtoffee-git/4f5e1919d41f9d599fd9a589dbe60097 to your computer and use it in GitHub Desktop.
Code to remove the incl.tax text from the invoice pdf - By WebToffee (WooCommerce PDF Invoices, Packing Slips and Credit Notes)
<?php //Do not copy this line of code
add_filter('wf_pklist_alter_tax_inclusive_text','wf_pklist_remove_tax_text',10,3);
function wf_pklist_remove_tax_text($incl_tax_text, $template_type, $order)
{
if( 'invoice' === $template_type )
{
$incl_tax_text = '';
}
return $incl_tax_text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment