Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created April 9, 2024 11:06
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/1903920784cfbb129b6c5f232ed2f3d8 to your computer and use it in GitHub Desktop.
Save webtoffee-git/1903920784cfbb129b6c5f232ed2f3d8 to your computer and use it in GitHub Desktop.
Code to change incl_tax text in Total and Subtotal to incl_GST - By WebToffee
<?php //Do not add 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($template_type=='invoice')
{
$incl_tax_text='Incl. GST';
}
return $incl_tax_text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment