
Allows email addresses using your site’s Mailgun domain to pass Contact Form 7’s form validation feature.
| Author: | AndrewRMinion Design (profile at wordpress.org) |
| WordPress version required: | 4.8 |
| WordPress version tested: | 5.7.0 |
| Plugin version: | 1.0.2 |
| Added to WordPress repository: | 01-12-2018 |
| Last updated: | 09-03-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | |
| Total downloads: | 1 734 |
| Active installs: | 10+ |
![]() Click to start download |
|
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' );
ChangeLog
