apply_filters( 'is_email', bool $is_email, string $email, string $context )

Filters whether an email address is valid.


Description Description

This filter is evaluated under several different contexts, such as ’email_too_short’, ’email_no_at’, ‘local_invalid_chars’, ‘domain_period_sequence’, ‘domain_period_limits’, ‘domain_no_periods’, ‘sub_hyphen_limits’, ‘sub_invalid_chars’, or no specific context.


Parameters Parameters

$is_email

(bool) Whether the email address has passed the is_email() checks. Default false.

$email

(string) The email address being checked.

$context

(string) Context under which the email was tested.


Top ↑

Source Source

File: wp-includes/formatting.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.