sanitize_email
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'sanitize_email', string $sanitized_email, string $email, string|null $message )
Описание
Этот фильтр вычисляется в нескольких контекстах, включая 'email_too_short', 'email_no_at', 'local_invalid_chars', 'domain_period_sequence', 'domain_period_limits', 'domain_no_periods', 'domain_no_valid_subs', либо без контекста.
Оригинал (английский)
This filter is evaluated under several contexts, including ’email_too_short’, ’email_no_at’, ‘local_invalid_chars’, ‘domain_period_sequence’, ‘domain_period_limits’, ‘domain_no_periods’, ‘domain_no_valid_subs’, or no context.
Фильтруемое значение
Параметры
$sanitized_email
string
обязательный
$email
string
обязательный
$message
string|null
обязательный
Исходный код
wp-includes/formatting.php:3776
return apply_filters( 'sanitize_email', '', $email, 'email_too_short' );
История изменений
| Версия | Описание |
|---|---|
| 2.8.0 | Introduced. |

