WP_User::get( string $key )

Retrieves the value of a property or meta key.


Description

Retrieves from the users and usermeta table.


Parameters

$key

(Required) Property


Return

(mixed)


Source

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

	public function get( $key ) {
		return $this->__get( $key );
	}

Changelog

Changelog
Version Description
3.3.0 Introduced.