Filter
rpress_get_banned_emails
On this page
Filters the list of banned email addresses and domains.
Runs in rpress_get_banned_emails() after the banned emails setting has been loaded and each entry trimmed. rpress_is_email_banned() matches checkout emails against this list. An entry can be a full address, a domain fragment, or a TLD that starts with a dot.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$emails | array | Banned email entries, each already trimmed. |
Return value#
array. List of banned address, domain or TLD strings.
Example#
function my_banned_emails( $emails ) {
$emails[] = 'mailinator.com';
$emails[] = '.invalid';
return $emails;
}
add_filter( 'rpress_get_banned_emails', 'my_banned_emails', 10, 1 );
Source#
Applied in:
includes/checkout/functions.php(line 232), inrpress_get_banned_emails()
See also#
Was this page helpful?
