Created
February 21, 2024 10:30
-
-
Save dennisnissle/7627484c83e737f67195f33584a5ab09 to your computer and use it in GitHub Desktop.
Change email customer title to company name
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 | |
add_filter( 'woocommerce_gzd_email_title', function( $email_title, $order ) { | |
$email_title = 'Hallo ' . $order->get_billing_company(); | |
return $email_title; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment