記述は以下になります。
add_filter( ‘usces_filter_send_order_mail_shipping’, ‘cod_filter_send_order_mail_shipping’, 10, 3 );
function cod_filter_send_order_mail_shipping( $msg_shipping, $data, $entry ) {
global $usces;
$res =””;
$entry = $usces->cart->get_entry();
$args = func_get_args();
$msg_shipping = $args;[0];
// $res .= “ご購入者情報\r”;
$res .= “【配送先】\r”;
$res .= “*****************************************************\r”;
// $res .= __(‘Delivery Method’,’usces’) . “\t: ” . $usces->options[‘delivery_method’][$deli_index][‘name’] . “\r”; //配送方法
$res .= __(‘宛名’,’usces’) . ” : ” . $entry[‘customer’][‘name1’];
$res .= __(‘Delivery Method’,’usces’) . “\t: ” . $usces->options[‘delivery_method’][$deli_index][‘name’] . “\r”;
$res .= __(‘配送方法’,’usces’) . ” : ” . $entry[‘order’][‘delivery_method’] . “\r”;
$res .= __(‘Delivery date’,’usces’) . ” : ” . $entry[‘order’][‘delivery_date’] . “\r”;
$res .= __(‘Delivery Time’,’usces’) . ” : ” . $entry[‘order’][‘delivery_time’] . “\r”;
$res .= “*****************************************************\r”;
$res .= “\r\n”;
return $res;
}