get_post_meta_by_id( int $mid ): object|bool

In this article

Returns post meta data by meta ID.

Parameters

$midintrequired

Return

object|bool

Source

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

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.