GB_User::get_meta
Retrieve user meta field for a user.
Signature
public function get_meta(int
$user_id,
[string
$key = '',
[boolean
$single = false]] )
Parameters
$user_id
—
int
User ID.
$key
—
string
Optional. The meta key to retrieve. By default, returns data for all keys.
$single
—
boolean
Whether to return a single value.
Returns
- mixed
- Will be an array if $single is false. Will be value of meta data field if $single
is true.
Violations
Checkstyle
Line |
Column |
Severity |
Message |
776 |
12 |
error
|
Method name "GB_User::get_meta" is not in camel caps format |
776 |
12 |
error
|
Visibility must be declared on method "get_meta" |