更新帖子ID列表的元数据缓存。
原型
update_postmeta_cache( array $post_ids )
描述
执行SQL查询以检索帖子ID的元数据并更新帖子的元数据缓存。因此,调用此函数的函数不需要自己执行SQL查询。
参数
$post_ids
(array)
(Required)
邮政编码清单。
返回值
(array|false)
如果没有要更新的内容或元数据数组,则返回false。
源文件
路径:wp-includes/post.php
<?php
...
function update_postmeta_cache( $post_ids ) {
return update_meta_cache('post', $post_ids);
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/update_postmeta_cache/