GB_Meta::update_by_mid
Update meta data by meta ID
Signature
public function update_by_mid(string
$meta_type,
int
$meta_id,
string
$meta_value,
[boolean
$meta_key = false] )
Parameters
$meta_type
—
string
Type of object metadata is for (e.g., comment, post, or user)
$meta_id
—
int
ID for a specific meta row
$meta_value
—
string
Metadata value
$meta_key
—
boolean
Optional, you can provide a meta key to update it
Returns
- bool
- True on successful update, false on failure.
Violations
Checkstyle
Line |
Column |
Severity |
Message |
694 |
12 |
error
|
Method name "GB_Meta::update_by_mid" is not in camel caps format |
694 |
12 |
error
|
Visibility must be declared on method "update_by_mid" |
745 |
13 |
error
|
Inline control structures are not allowed |