Description

The wpforms_mailcheck_domains filter is used for adding additional domains inside the email suggestion on the WPForms Email form field.

Parameters

$domains
(array) Array of domain suggestions for the Email form field.

Source

wpforms/src/Frontend/Frontend.php

More Information

The wpforms_mailcheck_domains is an array used for the email suggestion on the Email form field.

Example

/**
 * List of domains for email suggestion.
 *
 * @link    https://wpforms.com/developers/wpforms_mailcheck_domains/
 *
 * @param   array   $domains  Array of domains for email suggestion.
 * @return  array
 */

function wpf_dev_mailcheck_domains( $domains ) {
 
    $domains[] = "domain.com";
 
    return $domains;
}
 
add_filter( 'wpforms_mailcheck_domains', 'wpf_dev_mailcheck_domains', 10, 1 );


Reference Articles

How to Add Domains to the Email Suggestion List