
內容簡介
您是否使用 Mailgun 來自您的 WordPress 網站發送電子郵件?使用 Mailgun 域名的電子郵件地址是否使聯繫表單 7 驗證失敗,而令您感到煩惱?
此外掛程式允許使用您的網站 Mailgun 域名的電子郵件地址通過聯繫表單 7 的表單驗證功能。
它還包括 cf7_mailgun_domain 過濾器,您可以使用該過濾器修改默認 mailgun 域。例:
/**
* 過濾 Mailgun 域名。
*
* @param string $domain 您的 mailgun 域名。如果未設置,則為設置在 Mailgun 插件設置中的域名,或 'mg.your-site.com'。
*
* @return string 您的 mailgun 域名。
*/
function my_custom_mailgun_domain( $domain ) {
$domain = 'mg.my-site.com'; // 將其替換為您的 Mailgun 域名。
return $domain;
}
add_filter( 'cf7_mailgun_domain', 'my_custom_mailgun_domain' );
外掛標籤
開發者團隊
② 後台搜尋「CF7 Mailgun Domain Validation」→ 直接安裝(推薦)
原文外掛簡介
Do you use Mailgun to deliver emails from your WordPress site? Does it annoy you that email addresses using the Mailgun domain causes Contact Form 7 validation to fail?
This plugin allows email addresses using your site’s Mailgun domain to pass Contact Form 7’s form validation feature.
It also includes the cf7_mailgun_domain filter you can use to modify the default mailgun domain. Example:
/**
* Filter the Mailgun domain.
*
* @param string $domain Your mailgun domain; defaults to the domain set in the Mailgun plugin settings, or 'mg.your-site.com' if that is not set.
*
* @return string Your mailgun domain.
*/
function my_custom_mailgun_domain( $domain ) {
$domain = 'mg.my-site.com'; // Replace this with your Mailgun domain.
return $domain;
}
add_filter( 'cf7_mailgun_domain', 'my_custom_mailgun_domain' );
