Remove the default text in "Additional content" being sent for all emails when the field is empty

This commit is contained in:
Shadi Manna 2023-04-19 18:27:27 +02:00
parent 9aa4fd6bd2
commit 230ff742bf
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Remove the default text in "Additional content" being sent for all emails when the field is empty

View File

@ -400,7 +400,7 @@ class WC_Email extends WC_Settings_API {
* @return string
*/
public function get_additional_content() {
return apply_filters( 'woocommerce_email_additional_content_' . $this->id, $this->format_string( $this->get_option( 'additional_content', $this->get_default_additional_content() ) ), $this->object, $this );
return apply_filters( 'woocommerce_email_additional_content_' . $this->id, $this->format_string( $this->get_option( 'additional_content' ) ), $this->object, $this );
}
/**