Created
October 27, 2022 08:50
-
-
Save shadimanna/f75b55906011bbff9801d0d5be0da6d5 to your computer and use it in GitHub Desktop.
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
add_filter('faire_add_to_order_product', 'faire_product_price_zero'); | |
function faire_product_price_zero( $product ) { | |
$product['item']->price_cents = 0; | |
return $product; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment