如何从联系表 7 发送的邮件中删除 "wordpress" 字
how to remove "wordpress" word from mail sending by contact form 7
我不知道如何在联系表 7 中进行设置。我只想删除单词 "wordpress" 并在此插件发送的邮件中提供我的自定义名称。
提前致谢
试试下面的代码。代码将转到 functions.php
// Function to change email address
function wpb_sender_email( $original_email_address ) {
return 'tim.smith@example.com';
}
// Function to change sender name
function wpb_sender_name( $original_email_from ) {
return 'Tim Smith';
}
// Hooking up our functions to WordPress filters
add_filter( 'wp_mail_from', 'wpb_sender_email' );
add_filter( 'wp_mail_from_name', 'wpb_sender_name' );
我认为您想得太多了,它是在 邮件 选项卡中的联系表 7 中提供的简单自定义。您只需要更改发件人的内容:<your-name>
我会把截图发给你希望有用
添加
[your-name] <inquiry@example.com>
并且不要忘记将 example.com 替换为您的实际域名
我不知道如何在联系表 7 中进行设置。我只想删除单词 "wordpress" 并在此插件发送的邮件中提供我的自定义名称。
提前致谢
试试下面的代码。代码将转到 functions.php
// Function to change email address
function wpb_sender_email( $original_email_address ) {
return 'tim.smith@example.com';
}
// Function to change sender name
function wpb_sender_name( $original_email_from ) {
return 'Tim Smith';
}
// Hooking up our functions to WordPress filters
add_filter( 'wp_mail_from', 'wpb_sender_email' );
add_filter( 'wp_mail_from_name', 'wpb_sender_name' );
我认为您想得太多了,它是在 邮件 选项卡中的联系表 7 中提供的简单自定义。您只需要更改发件人的内容:<your-name>
我会把截图发给你希望有用
添加
[your-name] <inquiry@example.com>
并且不要忘记将 example.com 替换为您的实际域名