Determine whether the user exists in the database.
(bool) True if user exists in the database, false if not.
File: wp-includes/class-wp-user.php
public function exists() { return ! empty( $this->ID ); }
Version | Description |
---|---|
3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user/exists