{"id":15027054,"date":"2021-11-01T22:09:09","date_gmt":"2021-11-01T22:09:09","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/customize-email-heading-in-customer_invoice-php\/"},"modified":"2021-11-01T22:09:09","modified_gmt":"2021-11-01T22:09:09","slug":"customize-email-heading-in-customer_invoice-php","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/customize-email-heading-in-customer_invoice-php\/","title":{"rendered":"Customize email heading in customer_invoice.php"},"content":{"rendered":"<p>How do I change the text in the email heading of customer_invoice.php &#8211; Now it says &#8220;Faktura f\u00f6r best\u00e4llning #18514&#8221; and I just want to change it to &#8220;Kvitto f\u00f6r best\u00e4llning #18514&#8221; I have tried the code below with no luck<\/p>\n<p>Many thanks in advance!<\/p>\n<p>\/Jonas<\/p>\n<pre><code>function filter_woocommerce_email_heading_customer_invoice( $email_heading , $email ) {\n\/\/ make filter magic happen here...\n$email_heading = &#039;Kvitto f\u00f6r best\u00e4llning&#039;;\nreturn $email_heading;\n};\n\n\/\/ add the filter\nadd_filter( &quot;woocommerce_email_heading_customer_invoice&quot;, &#039;filter_woocommerce_email_heading_customer_invoice&#039;, 10, 2 );<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-15027054","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15027054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15027054\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15027054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}