WordPress开发者和主题制作者的搜索引擎



get_post_meta_by_id ›

Since2.1.0
已弃用n/a
get_post_meta_by_id ( $mid )
参数:
  • (int) $mid
    Required: Yes
返回:
  • (object|bool)
定义在:
文档:

Get post meta data by meta ID.



源码

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