update_postmeta_cache() - WordPress 函数参考中文文档

返回介绍

update_postmeta_cache()

发布于 2017-09-11 字数1385 浏览 925 评论 0

update_postmeta_cache( array $post_ids )

Updates metadata cache for list of post IDs.


描述

Performs SQL query to retrieve the metadata for the post IDs and updates the metadata cache for the posts. Therefore, the functions, which call this function, do not need to perform SQL queries on their own.


参数

$post_ids

(array)
(Required)
List of post IDs.


返回值

(array|false) Returns false if there is nothing to update or an array of metadata.


源代码

File: wp-includes/post.php

function update_postmeta_cache( $post_ids ) {
	return update_meta_cache('post', $post_ids);
}

更新日志

Version 描述
2.1.0 Introduced.

相关函数

Uses

  • wp-includes/meta.php:
    update_meta_cache()

Used By

  • wp-includes/post.php:
    update_post_caches()

User Contributed Notes

上一篇:update_post_cache()

下一篇:update_posts_count()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!