wpseek.com
A WordPress-centric search engine for devs and theme authors



get_post_meta_by_id › WordPress Function

Since2.1.0
Deprecatedn/a
get_post_meta_by_id ( $mid )
Parameters:
  • (int) $mid
    Required: Yes
Returns:
  • (object|bool)
Defined at:
Codex:

Returns post meta data by meta ID.



Source

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