Created
November 12, 2019 17:03
-
-
Save dancameron/f24c1f327536efe091cf5f83dc3068e1 to your computer and use it in GitHub Desktop.
Don't Show Payment Term Fee Labels if Zero
This file contains hidden or 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 // 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