Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created May 16, 2024 06:42
Show Gist options
  • Save webtoffee-git/9647aa3564d11500d764567d35adf523 to your computer and use it in GitHub Desktop.
Save webtoffee-git/9647aa3564d11500d764567d35adf523 to your computer and use it in GitHub Desktop.
This code is used to change the "incl. tax" text to "incl. VAT" in invoice document - By WebToffee
<?php //Do not add this line of code
//To remove incl_tax text from subtotal
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($template_type=='invoice')
{
$incl_tax_text='incl. VAT';
}
return $incl_tax_text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment