[wordpress插件] CF7 Mailgun Domain ValidationCF7 Mailgun域验证

wordpress 插件 文章 2020-03-20 18:50 0 83 全屏看文
评分
0
描述

Do you use Mailgun to deliver emails from your WordPress site?

您是否使用Mailgun从WordPress网站发送电子邮件?

Does it annoy you that email addresses using the Mailgun domain causes Contact Form 7 validation to fail?

使用Mailgun域的电子邮件地址是否会导致联系表单7验证失败,这会惹恼您吗?

This plugin allows email addresses using your site’s Mailgun domain to pass Contact Form 7’s form validation feature.

此插件允许使用您网站的Mailgun域的电子邮件地址通过联系表单7的表单验证功能。

It also includes the cf7_mailgun_domain filter you can use to modify the default mailgun domain.

它还包括 cf7_mailgun_domain 过滤器,可用于修改默认mailgun域。

Example:

示例:

/** 

  / ** 

* Filter the Mailgun domain. 

*过滤Mailgun域。 

* @param string $domain Your mailgun domain;

* @param string $ domain您的mailgun域;

defaults to 'mg.your-site.com'. 

默认为“ mg.your-site.com”。 

* @return string Your mailgun domain. 

* @return string您的mailgun域。 

*/

* /

function my_custom_mailgun_domain( $domain ) {    

函数my_custom_mailgun_domain($ domain){    

$domain = 'mg.my-site.com';

$ domain ='mg.my-site.com';

// Replace this with your Mailgun domain.    

//将其替换为您的Mailgun域。    

return $domain;

返回$ domain;

}

}

add_filter( 'cf7_mailgun_domain', 'my_custom_mailgun_domain' );

add_filter('cf7_mailgun_domain','my_custom_mailgun_domain');

安装步骤

    1. Install and activate the plugin
    2. 安装并激活插件

    3. Revalidate your Contact Form 7 forms.
    4. 重新验证您的联系表单7表单。

下载地址
https://downloads.wordpress.org/plugin/cf7-mailgun-domain-validation.1.0.2.zip
-EOF-