get_metadata_by_mid

SummerySummery

Retrieves metadata by meta ID.

Syntax

get_metadata_by_mid( string $meta_type, int $meta_id )

ParametersParameters

$meta_type

(string) (Required) Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

$meta_id

(int) (Required) ID for a specific meta row.

ReturnReturn

(object|false) Meta object or false.

SourceSource

File: wp-includes/meta.php


			

ChangelogChangelog

Changelog
Version Description
3.3.0 Introduced.
Scroll to Top