Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created November 12, 2019 17:03
Show Gist options
  • Save dancameron/f24c1f327536efe091cf5f83dc3068e1 to your computer and use it in GitHub Desktop.
Save dancameron/f24c1f327536efe091cf5f83dc3068e1 to your computer and use it in GitHub Desktop.
Don't Show Payment Term Fee Labels if Zero
<?php // don't include this line in your functions.php, since it already starts with it.
function si_change_doc_fees_labels( $fees, $doc ) {
foreach ( $fees as $key => $fee ) {
$fees[ $key ]['always_show'] = 0;
}
return $fees;
}
add_filter( 'si_doc_fees', 'si_change_doc_fees_labels', 100, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment