get_usermeta


get_usermeta ( $user_id, $meta_key = '' )

Parameters:
  • (int) user_id User ID
  • (string) meta_key Optional. Metadata key. Default empty.
See:
Returns:
  • (mixed)
Defined at:

Description

Retrieve user metadata.If $user_id is not a number, then the function will fail over with a 'false' boolean return value. Other returned values depend on whether there is only one item to be returned, which be that single item type. If there is more than one metadata value, then it will be list of metadata values.

Related Functions

get_user_meta, get_userdata, delete_usermeta, get_site_meta, get_term_meta

Top Google Results

User discussions

wpseek mobile