WP HOOKS
filtrod 2.8.0

is_email

Args 3Plik wp-includes/formatting.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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.

Parametry

ParametrTypOpis
$is_emailstring | falseThe email address if successfully passed the is_email() checks, false otherwise.
$emailstringThe email address being checked.
$contextstringContext under which the email was tested.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'is_email', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii