WP_User::exists()

Determine whether the user exists in the database.


Description Description


Return Return

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


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.