该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

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' );

安装

  1. Install and activate the plugin
  2. Revalidate your Contact Form 7 forms.

评价

此插件暂无评价。

贡献者及开发者

“CF7 Mailgun Domain Validation” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0.2

  • Fix domain filter typo.

1.0.1

  • Get Mailgun domain from Mailgun plugin options if available.

1.0.0

  • First stable version