Title: removing text string from class*.php file
Last modified: December 8, 2019

---

# removing text string from class*.php file

 *  Resolved [AJWD](https://wordpress.org/support/users/ajwd/)
 * (@ajwd)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/removing-text-string-from-class-php-file/)
 * I am customizing our customer emails.
    I have had success with the php files 
   in woocommerce/templates. I just created a woocommerce directory in my child 
   theme and everything is good. However, I am trying to modify the order received
   email the customer receives and remove the line of text that says “Thanks for
   using {our website}” I have found the text string in -wp-content\plugins\woocommerce\
   includes\emails\class-wc-email-customer-processing-order.php I can of course 
   modify this file but when I update WC I will lose my changes. How do I update/
   modify these files and have them last through an update?
 * TLDR;
 * I want to remove:
    public function get_default_additional_content() { return 
   __( ‘Thanks for using {site_address}!’, ‘woocommerce’ ); }
 * from class-wc-email-customer-processing-order.php
 * I tried using:
    remove_action(‘Thanks for using {site_address}!’, ‘woocommerce’);
   that did not work.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * (@thup90)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/removing-text-string-from-class-php-file/#post-12241202)
 * Hi there,
 * You can actually remove this in the Emails settings, Additional Content field
   in WooCommerce > Settings > Emails: [https://d.pr/i/U139h4](https://d.pr/i/U139h4)
 *  Plugin Support [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * (@thup90)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/removing-text-string-from-class-php-file/#post-12261965)
 * Hi there,
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘removing text string from class*.php file’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Thu P. a11n](https://wordpress.org/support/users/thup90/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/removing-text-string-from-class-php-file/#post-12261965)
 * Status: resolved