GB_Meta::exists
Determine if a meta key is set for a given object
Signature
public function exists(string
$meta_type,
int
$object_id,
string
$meta_key )
Parameters
$meta_type
—
string
Type of object metadata is for (e.g., comment, post, or user)
$object_id
—
int
ID of the object metadata is for
$meta_key
—
string
Metadata key.
Returns
- boolean
- true of the key is set, false if not.
Violations
Checkstyle
Line |
Column |
Severity |
Message |
608 |
12 |
error
|
Visibility must be declared on method "exists" |
623 |
9 |
error
|
Inline control structures are not allowed |
635 |
9 |
error
|
Inline control structures are not allowed |