CF7 Mailgun Domain Validation

CF7 Mailgun Domain Validation Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 897 downloads
CF7 Mailgun Domain Validation Icon

Try plugin: CF7 Mailgun Domain Validation

We'll create fresh WordPress site with CF7 Mailgun Domain Validation installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About CF7 Mailgun Domain Validation

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

0


0


0


0


0

updated: 3 years ago
since: 5 years ago

Description

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