Filter hook 'is_email'

in WP Core File wp-includes/formatting.php at line 3559

Description

Filters whether an email address is valid. 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.

Occurrences

Filename Line Number
wp-includes/formatting.php 3559
wp-includes/formatting.php 3565
wp-includes/formatting.php 3577
wp-includes/formatting.php 3586
wp-includes/formatting.php 3592
wp-includes/formatting.php 3601
wp-includes/formatting.php 3609
wp-includes/formatting.php 3615
wp-includes/formatting.php 3621

Parameters

Type Name Description
string|false $is_email The email address if successfully passed the is_email() checks, false otherwise.
string $email The email address being checked.
string $context Context under which the email was tested.

PHP Doc

/**
		 * Filters whether an email address is valid.
		 *
		 * 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.
		 *
		 * @since 2.8.0
		 *
		 * @param string|false $is_email The email address if successfully passed the is_email() checks, false otherwise.
		 * @param string       $email    The email address being checked.
		 * @param string       $context  Context under which the email was tested.
		 */