WP_User::exists()

Determine whether the user exists in the database.


Return

(bool) True if user exists in the database, false if not.


Source

File: wp-includes/class-wp-user.php

	public function exists() {
		return ! empty( $this->ID );
	}

Changelog

Changelog
Version Description
WP-3.4.0 Introduced.