Чтобы переименовать заголовки уведомлений по электронной почте, вы будете использовать следующие (заменяя их вашими) :
add_filter( 'woocommerce_email_title', 'change_woocommerce_email_title', 10, 2 );
function change_woocommerce_email_title( $email_title, $email ){
// Only on backend Woocommerce Settings "Emails" tab
if( isset($_GET['page']) && $_GET['page'] == 'wc-settings' && isset($_GET['tab']) && $_GET['tab'] == 'email' ) {
$domain = "woocommerce"; // The text domain
switch ($email->id) {
case 'new_order':
$email_title = __("New Order Email", $domain);
break;
case 'cancelled_order':
$email_title = __("Cancelled Order Email", $domain);
break;
case 'failed_order':
$email_title = __("Failed Order", $domain);
break;
case 'customer_on_hold_order':
$email_title = __("Customer On Hold Order Email", $domain);
break;
case 'customer_processing_order':
$email_title = __("Customer Processing Order Email", $domain);
break;
case 'customer_completed_order':
$email_title = __("Customer Completed Order Email", $domain);
break;
case 'customer_refunded_order':
$email_title = __("Customer Refunded Email", $domain);
break;
case 'customer_invoice':
$email_title = __("Customer Invoice Email", $domain);
break;
case 'customer_note':
$email_title = __("Customer note Email", $domain);
break;
case 'customer_reset_password':
$email_title = __("Customer Reset Password Email", $domain);
break;
case 'customer_new_account':
$email_title = __("Customer New Account Email", $domain);
break;
}
}
return $email_title;
}
Код помещается в файл function.php вашей активной дочерней темы (active theme). Проверено и работает.