# email_exists()

URL: https://chugunov.pro/api-wordpress/functions/email_exists/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 2.1.0.

## Сигнатура

```php
email_exists( string $email ): int|false
```

## Описание

Дополнительные сведения об этой и похожих функциях темы см. в статье о Conditional Tags в Theme Developer Handbook.

## Параметры

- `$email` `string` — обязательный. Адрес электронной почты для проверки существования.

## Возвращаемое значение

`int|false`

## Исходный код

Файл: `wp-includes/user.php:2094`

```php
function email_exists( $email ) {
	$user = get_user_by( 'email', $email );
	if ( $user ) {
		$user_id = $user->ID;
	} else {
		$user_id = false;
	}

	/**
	 * Filters whether the given email exists.
	 *
	 * @since 5.6.0
	 *
	 * @param int|false $user_id The user ID associated with the email,
	 *                           or false if the email does not exist.
	 * @param string    $email   The email to check for existence.
	 */
	return apply_filters( 'email_exists', $user_id, $email );
}
```

## История изменений

- 2.1.0 — Introduced.

## Связанные

Использует: [`get_user_by`](https://chugunov.pro/api-wordpress/functions/get_user_by/), [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/).
Используется в: `WP_REST_Users_Controller::update_item`, [`send_confirmation_on_profile_email`](https://chugunov.pro/api-wordpress/functions/send_confirmation_on_profile_email/), [`edit_user`](https://chugunov.pro/api-wordpress/functions/edit_user/), [`register_new_user`](https://chugunov.pro/api-wordpress/functions/register_new_user/), [`wp_insert_user`](https://chugunov.pro/api-wordpress/functions/wp_insert_user/), [`wpmu_validate_user_signup`](https://chugunov.pro/api-wordpress/functions/wpmu_validate_user_signup/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/email_exists/
