WP_User::exists(): bool
- Since
- 3.4.0
- Source
wp-includes/class-wp-user.php:405
Determines whether the user exists in the database.
Return
bool- True if user exists in the database, false if not.
Source
public function exists() { return ! empty( $this->ID ); }History
Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, from
src/wp-includes/class-wp-user.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.