Definition:
function update_postmeta_cache($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.
Parameters
- array $post_ids: List of post IDs.
Return values
returns:Returns false if there is nothing to update or an array of metadata.
Source code
function update_postmeta_cache($post_ids) { return update_meta_cache('post', $post_ids); }
3191
No comments yet... Be the first to leave a reply!