Created
April 8, 2024 05:23
-
-
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)
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 //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