W3cubDocs

/WordPress

get_post_meta_by_id( int $mid )

Get post meta data by meta ID.

Parameters

$mid

(int) (Required)

Return

(object|bool)

Source

File: wp-admin/includes/post.php

function get_post_meta_by_id( $mid ) {
	return get_metadata_by_mid( 'post', $mid );
}

Changelog

Version Description
2.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_post_meta_by_id