get_metadata_by_mid


get_metadata_by_mid ( $meta_type, $meta_id )

Parameters:
  • (string) meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
  • (int) meta_id ID for a specific meta row.
Returns:
  • (stdClass|false) { Metadata object, or boolean `false` if the metadata doesn't exist. @type string $meta_key The meta key. @type mixed $meta_value The unserialized meta value. @type string $meta_id Optional. The meta ID when the meta type is any value except 'user'. @type string $umeta_id Optional. The meta ID when the meta type is 'user'. @type string $post_id Optional. The object ID when the meta type is 'post'. @type string $comment_id Optional. The object ID when the meta type is 'comment'. @type string $term_id Optional. The object ID when the meta type is 'term'. @type string $user_id Optional. The object ID when the meta type is 'user'. }
Defined at:

Description

Retrieves metadata by meta ID.

Related Functions

delete_metadata_by_mid, update_metadata_by_mid, get_metadata, get_post_meta_by_id, get_metadata_raw

Top Google Results

User discussions

wpseek mobile