Skip Navigation

Tagged: 

This topic contains 0 reply, has 1 voice.

Last updated by wolfgangH-13 1 year, 10 months ago.

Assisted by: Long Nguyen.

Author Posts
August 10, 2023 at 3:40 am #14178997

wolfgangH-13

I have a code that being translated and found in String Translation but it's not been translated in place

add_filter( 'woocommerce_email_subject_customer_processing_order', 'change_processing_mail_subject', 10, 2 );
function change_processing_mail_subject( $subject, $order ) {
global $woocommerce;
$items = $order->get_items();
foreach ( $items as $item ) {
$product_name = $item->get_name();
}
$subject = __('Your registration for the course ').$product_name;
return $subject;
}