Title: Remove (Includes %s)
Last modified: September 1, 2016

---

# Remove (Includes %s)

 *  [meldy](https://wordpress.org/support/users/meldy/)
 * (@meldy)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/remove-includes-s-1/)
 * Hi,
    Is there a working snippet to remove/hide the (Includes %s) ex tax in both
   site and email?
 * I´ve tried this code but Problem is, that after using code, total coast is not
   showing in email. All field is empty included total price. I want to remove only
   thesee text _“(included 20.5€ tax)”._
 * Have some solution for me please?
 *     ```
       function woo_includes_tax_text_filter_1( $content ) {
   
       	// set up regex match, replace regex with nothing
       	$find 		= '/\<small.*small\>/Ui';
       	$content 	= preg_replace( $find, '', $content );
   
       	return $content;
       }
       add_filter( 'woocommerce_cart_totals_order_total_html', 'woo_includes_tax_text_filter_1', 99, 1 );
   
       function woo_includes_tax_text_filter_2( $content ) {
   
       	// set up regex, find matches, take only first match and return it
       	$find 		= '/\<span class\=\"amount\".*\<\/span\>/Ui';
       	preg_match( $find, $content, $matches );
       	$content 	= $matches[0];
   
       	return $content;
       }
       add_filter( 'woocommerce_get_formatted_order_total', 'woo_includes_tax_text_filter_2', 99, 1 );
       ```
   

The topic ‘Remove (Includes %s)’ is closed to new replies.

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [vat](https://wordpress.org/support/topic-tag/vat/)

 * 0 replies
 * 1 participant
 * Last reply from: [meldy](https://wordpress.org/support/users/meldy/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/remove-includes-s-1/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
