Last active
March 20, 2019 19:35
-
-
Save bporcelli/cfdd058d7aafced7449a to your computer and use it in GitHub Desktop.
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
| /** | |
| * Change the taxable amount for product with ID 25 to 5 dollars | |
| */ | |
| function change_wootax_taxable_price( $price, $is_checkout, $item_id ) { | |
| if ( $is_checkout && $item_id == 25 ) { | |
| return 5; | |
| } else { | |
| return $price; | |
| } | |
| } | |
| add_filter( 'wootax_taxable_price', 'change_wootax_taxable_price', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment