If you want to hide add-on prices in the order and order confirmation email, use this snippet:
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 | |
/** | |
* Hide add-on prices for all fields in the order and order confirmation email | |
*/ | |
add_filter( 'pewc_show_field_prices_in_order', '__return_false' ); |
Here’s how to add a snippet.