Core Function
View Source on Trac ↗ get_metadata_by_mid()
get_metadata_by_mid( mixed $meta_type, mixed $meta_id ) Retrieves metadata by meta ID.
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table. Required |
| $meta_id int | ID for a specific meta row. Required |
Return Value
((stdClass)
(stdClass | false) {
Metadata object, or boolean `false` if the metadata doesn't exist.
Function Information
Since Version
3.3.0
Source File
wp-includes/meta.php
Advertisement