GB_User::delete_meta
Remove metadata matching criteria from a user.
You can match based on the key, or key and value. Removing based on key and value, will keep from removing duplicate metadata with the same key. It also allows removing all metadata matching key, if needed.
Signature
public function delete_meta(int
$user_id,
string
$meta_key,
[string
$meta_value = ''] )
Parameters
$user_id
— int
user ID$meta_key
— string
Metadata name.$meta_value
— string
Optional. Metadata value.
Returns
- bool
- True on success, false on failure.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
757 | 12 | error | Method name "GB_User::delete_meta" is not in camel caps format |
757 | 12 | error | Visibility must be declared on method "delete_meta" |