跳转至内容 跳转至侧边栏

標籤: 

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 wolfgangH-13 2 years前 更新。

协助者:: Long Nguyen.

作者 帖子
10 8 月, 2023 于 3:40 上午 #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;
}