Returns post meta data by meta ID.
Parameters
$mid
intrequired
Source
function get_post_meta_by_id( $mid ) {
return get_metadata_by_mid( 'post', $mid );
}
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
Returns post meta data by meta ID.
$mid
intrequiredfunction get_post_meta_by_id( $mid ) {
return get_metadata_by_mid( 'post', $mid );
}
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.