update_postmeta_cache
update_postmeta_cache ( $post_ids )
Parameters:- (int[]) post_ids Array of post IDs.
Returns:- (array|false) An array of metadata on success, false if there is nothing to update.
Defined at: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Updates metadata cache for a 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.