query.get_user_meta
/ Database / query.get_user_meta
Title | : | query.get_user_meta | |||||||||||
Purpose | : | For retrieving specific user meta data | |||||||||||
Syntax | : |
|
|||||||||||
Input Parameters | : |
user_id: (int) (Required) User ID key: (string) (Optional) The meta key to retrieve. By default, returns data for all keys. Default value: ” single: (bool) (Optional) Whether to return a single value. This parameter has no effect if $key is not specified. Default value: false |
|||||||||||
Return Value | : | (mixed) An array if $single is false. The value of meta data field if $single is true. False for an invalid $user_id. | |||||||||||
Example 1 | : |
|